Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ctrl+0 inserts .null.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00156984
Message ID:
00156998
Views:
33
Oops! I just remembered that KeyPress has another parameter. Something like nShiftAltCtrl. It tells you whether any of theys keys was combined with the key that was pressed. Try this in your KeyPress:
IF nKeyCode=48 AND nShiftAltCtrl=2
  NODEFAULT
ENDIF
You may already know this, but you can use the form's keypress as long as the form's KeyPreview property is .T.

>Yeah, I thought 48 was used for something else. I'll bet your users insisted on being able to enter 0s. Users are such a pain! :)
>
>>Josh,
>>
>>I tried nodefault for 48 in the keypress but that is also the code for 0. On key label ctrl+0 * worked great.
>>
>>Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform