Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
F5 & F9 could not be recognized
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
F5 & F9 could not be recognized
Miscellaneous
Thread ID:
00657155
Message ID:
00657155
Views:
70
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.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform