Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a Key Press
Message
 
To
14/12/1999 11:15:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00303395
Message ID:
00303519
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform