Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress peculiarities
Message
 
 
À
19/10/2001 09:25:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00570771
Message ID:
00570819
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>Greetings all.
>
>A textbox on my form needs to accept only certain alpha/numeric values. If the first entry is a '0' (zero), the TextBox.Value would need to be completed thus: '0EMPT-Y'. Otherwise, the characters will all need to be uppercase alpha like this: 'CAGUK-M' Using ! in Format property and InputMask = 'XXXXX-X', I can get the UPPERCASE and the hyphen in position six, but I need to limit the characters in positions 2-5, and 7 to alpha. I've tried to use KeyPress, but I'm afraid I'm doing something amiss, "'cause it ain't doin' what I want!'" ;-).
>
>Any suggestions would be appreciated.
>
>Thanks,

Hi Tim,
Use letter 'A' in the position of the InputMask where you want alpha characters only
InputMask = 'XAAAA-A'
See InputMask Property in the help for more details.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform