Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a forms methods from its called toolbar ??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00542858
Message ID:
00542872
Vues:
15
>Does your toolbar accept form reference as a parameter?
yes --I could change it if necessary... but it takes the name of the calling form as a parameter...


>Seems like yes, in this case: this.oMyForm.MyMethod() should work, I believe...

The problem with that, is 'omyform' is out of scope. remember the myform.(the calling form) is the one that called the toolbar...

So from a click in a button on the toolbar this.omyform.mymethod() is going down.. not up the chain. I think I need to go up. to the calling form...

Thanks.
Bob


>>thisform.addproperty("ot",createobject("mytoolbar","omyform"))
>>the toolbar class accepts the parameter,(omyform), and sets the property of the toolbar corretly, giving it a refrence..
In the beginning, there was a command prompt, and all was well.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform