Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
F5 & F9 could not be recognized
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00657155
Message ID:
00657158
Views:
22
>Hi everybody,
>
>I have a form, where I want to perform certain actions by pressing F5 or F9. I set KeyPreview to .t. and I put this code in KeyPress:
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>do case
>   case m.nKeyCode = - 4 && F5
>       set step on
>	   thisform.FFive()
>   	   nodefault
>   case m.nKeyCode = - 8 && F9
>       thisform.FNine()
>       nodefault
>endcase
>
>However, pressing F5 executes my macro, defined in Tools\Macros instead...
>
>How can I make my form to recognize these keys?
>
>Thanks a lot in advance.

Ok, clear macros seems to work.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform