Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a Key Press
Message
De
14/12/1999 14:26:36
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00303395
Message ID:
00303562
Vues:
17
>OKL's can have severe and devastating side effects
Yeah... just like too much code and not enough outside contact. :)

I wasn't recommending the OKL method, it just one possibility.

I know this is an insignificant difference, but wouldn't it be less code to StrTr(this.value,"-","") in LostFocus than to prevent the key from being entered? (unless i guess if you set the maxchars (to 9 for SocSecNo), where the "-" would be counting towards that maximum)

BTW, do you have a list of 'bad' commands and their accompanying severe and devastating side effects - it would be an invaluable reference for the future.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform