Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Del & Ins Key disabling
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00361198
Message ID:
00361204
Views:
19
>Hi, could someone please help.
>
>I am trying to disable the DEL & INS keys so I can trap their respective keypress codes of 7 and 22 using the keypress event in a form. After trapping either of these keys and doing the procedure attached to them, I am experiencing strange behavior.

Maybe what you want is just something like this in the Keypress?:
if nkeycode = 22 or nkeycode = 7
  nodefault && stops key event
  * do whatever else
endif
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform