Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox format code problem
Message
 
À
05/04/2001 12:33:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00492353
Message ID:
00492407
Vues:
14
>>>
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform