Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for characters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00063081
Message ID:
00063096
Vues:
50
>>I have a textbox that collects data. I don't want to allow an
>>apostrophe (') or quotation marks ("). Which character function
>>should I be using to help validate the data?
>
>Actually, I would put this in the textbox.KeyPress.
>
>LPARAMETERS nKeyCode...
>
>IF nKeyCode = (whatever the code for ' is) OR nKeyCode = ('"' code)
>    NODEFAULT
>ENDif
>
>The easiest way to get the codes is to stick a WAIT WINDOW STR(nKeyCode) in the KeyPress.

Thanks. Do you know where I can find the codes for those keys?

AL
Al Williams

Anola MB, CANADA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform