From: Steve H. <sh...@ho...> - 2004-04-15 16:41:02
|
[Kevin] > > From: ralph heimburger > > > > Speaking of attributes, TextField esp. is there a way to force > > the field to be UPPERCASE? > > > > In DataFlex all we needed to do was add {CAPSLOCK} to the > entry field. > > There is no attribute for the TextField to force text to be > UPPERCASE. If > you need that capability a lot you would probably be best off > creating a > subclass of the TextField component to give you that > functionality. Is this > a capability a lot of people need for dealing with databases? > I'd say it's much more usual simply to convert mixed-case inputs to all upper after input if all upper is a database requirement. [how to force upper-case ...] > > Finally, if you just want to make sure the text is uppercase > before you plug > it into a database or wherever you're going to use the text, > you can do the > upper() conversion in your code (e.g. > self.components.fld.text.upper() ) and > not worry about what the user sees. > Yup. regards Steve |