Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox format code problem
Message
 
To
05/04/2001 12:33:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00492353
Message ID:
00492407
Views:
16
>>>
>>>Any ideas?
>>
>>You can also use the InputMask property.
>
>How can you use inputmask to upcase text input?

Well, you wouldn't.

To allow only Uppercase characters from A-Z and convert a-z to A-Z, I would use ! in the format property and a do case in the keypress to do a NODEFAULT if anything is pressed other than a character. If I wanted escape, return and tab functionality I would trap for that higher in the case logic. If that didn't work I would consider parsing the input in the valid event of the textbox and check for isalpha() then do a this.value = upper(this.value). If that didn't work I would not use format or input masks and trap everything in the keypress event and not allow anything but A-Z.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform