Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
F5 and KeyPress Event
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00796465
Message ID:
00796485
Views:
20
This message has been marked as the solution to the initial question of the thread.
I have this in the Init of a class that I drop into a form:
SET FUNCTION F5 TO CHR(245)
Then on the keypres of the form
CASE nKeyCode = 245
do mycode
..
>It looks like Keypress event can't capture it, I put a SET STEP ON and keypress event never fires.
>
>
>
>>Plinio,
>>
>>Someone else asked this the other day on the ng. It worked fine for me if I put NODEFAULT in the method.
>>
>>>I can't capture F5 on keypress event of a textbox, everything works fine on VFP7. This is the code:
>>>
>>>IF nKeyCode = -4
>>> Do something....
>>>
>>>ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform