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:
00059148
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)

Gerald

Your Second Solution Worked Great
Thanks A lot.

BDH }:-)
B.D.H.
Previous
Reply
Map
View

Click here to load this message in the networking platform