>>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.