Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2008 Server
J'aime (1)
Thomas Borgmann
>The code in frmA does this....
>
>Thisform.p_ITM = CREATEOBJECT('itm')
>
>So... when I want to set or see properties in 'itm'.... I can call the code
>
>Thisform.p_ITM.p_A = 'this' likewise Thisform.p_ITM.p_B = 'that'
>But what if I am in class ITM code and I want to set the property in frmA ??
>
>Like this??
>
>frmA.p_C = 'me'
>I get frmA object does not exist.
>So.... how do I refer back to the frmA and it's properties?
>
>Thanks a bunch!
instead of thisform.xxx = createobject() use
thisform.addobject("xxx", "itm")
as this will add the itm object to the controls collection of the form and give itm a parent link.
Also gives you automatic cleAN UP ON DESTROY.
HTH
thomas
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement