Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Key Question?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00059123
Message ID:
00059144
Vues:
31
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform