Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEWOBJECT() Has no parent.
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00384767
Message ID:
00384814
Views:
51
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
Previous
Reply
Map
View

Click here to load this message in the networking platform