Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class does not see its parent
Message
 
 
À
15/02/2011 23:06:24
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01500327
Message ID:
01500329
Vues:
65
>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 it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform