Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NEWOBJECT() Has no parent.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00384767
Message ID:
00384814
Vues:
39
Bill,

If you must use NewObject/CreateObject you'll add an oParent property to provide a backlink. These kinds of object reference chains vastly complicate you life because you must null out the references at destruct time.

I really think you'll be better off using the cCollection route I pointed you to this morning. Then you can just use this.parent to get to the collection from the collected object.

>Agreed. I understand that it is not actually contained in the first object but I need to run a method on the object residing one level up the hierarchy chain can this be done?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform