Versions des environnements
Network:
Windows 2003 Server
>>If the parents methods are not hidden or protected then you should be able to just this.oSomeObject.method() to see it. I don't think that this.oSomeObject would have a parent.
>>
>You misunderstood me. I need to invoke the main class method from oSomeObject class. I added a new property oParent to oSomeObject class and in the main class I did
>
>this.oSomeObject.oParent = this
>
>--------------
>I'm testing it right now, but it looks very dangerous to me. I also added this.oParent = null in the Destroy method of the oSomeObject class.
If you need the object tree, why don't you use ,Add/.Newobject, which put the new object in the tree -
with backlink and no worry about hanging references when destroying ?
puzzled
thomas
Précédent
Suivant
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