Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trap F2 key on keypress event
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00808782
Message ID:
00808811
Views:
20
I am using VFP 6.0 and Windows 2000.

?inkey(0) in the command window returns -1


This code in the keypress event of a text box displays the wait window when I tap F2.
LPARAMETERS nKeyCode, nShiftAltCtrl

IF nKeyCode = -1
    WAIT WINDOW NOWAIT "F2 key"
ENDIF
>How can trap the f2 key on the keypress event? I not get any value, on keypress f3 I get -3
Dennis Lindeman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform