Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relative Control Referencing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00103404
Message ID:
00103408
Vues:
24
>>Bill,
>>Finally, if you are calling a createobject() or similar code in the method you can pass 'this' or 'this.parent' as parameters to the method, which will pass the complete object reference of the calling control or its parent respectively.
>
>This is along the lines of what I want to do. In the method I am calling, which is at the Form level, I need to run the statement:
>
>Thisform.Pageframe1.(whatever Page I'm on).(whatever control I'm on).Addnode(x,x,x)
>
>Since this method will be called from different page numbers, it has to know where it is adding the node.
>maybe this makes more sense.
>
>Thx,
>
>Bill

Bill, then try passing 'this' (without the quotes)
thisform.MyMethod(this.parent)
You should be passing a reference to the parent of the control calling the method, which would be the page the control is on.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform