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

It's not advised to use OKL for anything. Unless there is no other way...

In the Keypress event of the textbox receiving input, put:

IF nKeyCode = 45
NODEFAULT
ENDIF
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform