Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Key Question?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00059123
Message ID:
00059144
Views:
25
>Does Any one know how to call a Method with the On KEY LABEL command?
>
>I've tried "ON KEY LABEL F1 ThisForm.Obj.Click" & "ON KEY LABEL F1 dummy = ThisForm.Obj.Click()", And several variations along that line.
>Please Help.
>BDH

'This' can not be used outside of a method.

You need an absolute reference to your object.

Many ways to do this, two here:
1st.
Public Dummy
Dummy = this.object
ON KEY LABEL F1 Dummy.Click()

Not good.
You can't close your form until you broke the reference to the object.
Dummy = .NULL.

2nd.
DO FORM YourForm NAME MyFormName LINKED
ON KEY LABEL F1 MyFormName.Dummy.Click()

HTH
:0)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform