Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keypress Syntax
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00020037
Message ID:
00020039
Vues:
41
>Does someone know the correct syntax for keypress event if I want to have only a set of characters allowed, say
>for example (1,2,a,b,*,#) in a textbox?
>
>Something like:
>if inlist(chr(nkeycode),'1','2',etc)
>
>or !inlist() is better?
>what is the best way to do this?

look in the format and inputmask help. there's a way there to limit the keys a user can enter into a field. it dates back to fox1 i think. it also allows the user to press the spacebar to step through the options.

lots of help, eh? at least you'll recognize it when you see it.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform