Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incremental search
Message
From
09/06/2001 07:58:52
 
 
To
09/06/2001 06:57:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00514814
Message ID:
00517357
Views:
20
Hi Fred.

>> I am trying to intercept some key strokes in a simple text box. In VB I can retrun any keystroke in the keypress event. In Foxpro, it seems to put the char in the textbox.value no matter what I do. What am I missing? <<

What you are missing is NODEFAULT.

So, all you need is code like this in the KeyPress:

IF INLIST( nKeyCode, < whatever keys you want to intercept > )
*** Code to do whatever you want to do with the keystrokes here
NODEFAULT
ENDIF

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform