General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only