Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a Key Press
Message
 
À
14/12/1999 11:15:05
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00303395
Message ID:
00303519
Vues:
12
>Is there a way to disable a key on the keyboard. My users have a bad habit of putting a dash'-' in the job number field. The field is a mix of alpha/numeric characters. Thanks for your help.
>
>God Bless,
>S. Dyke

Steven,

Create a textbox clas for the Job number and put this in teh Keypress evetn of that class;
* txtJobNumber.KeyPress
LPARAMETERS nKeyCode, nShiftAltCtrl
IF CHR(nKeyCode) = "-"
   ?? CHR(7) && Beep
   NODEFAULT
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform