Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function keys
Message
 
To
11/07/2002 22:16:49
Jeffrey Ang
JGA Software Inc.
Davao, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00677835
Message ID:
00677837
Views:
24
Hi, Jeffrey

In your case try not using ON KEY LABEL. On your main program do this:

ON KEY LABEL F1 varx = 0
ON KEY LABEL F2 varx = 0
ON KEY LABEL F3 varx = 0
ON KEY LABEL F4 varx = 0
***until f12



If you are using keypress method in your form, don't forget to set Keypreview = .T. In your form.



>I want to use the function keys(f2-f9) in my form. in keypress event, i want to trapped those keys(-1..-9). my problem is that the on key label will override the keypress event. how to disable the on key label. i use on key label retry in my form's init event. but it won't work. i think on key label comes first. i tried to put my commands in every on key label but can't call a procedure inside your form(ie Thisform.Procedure), it must be outside your form. but i need to call the procedure inside my form
>
>tnx in advance...
>
>jeff
Dominican Republic, a Paradise in America
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform