Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a parent's object
Message
From
27/08/2007 18:26:18
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01250681
Message ID:
01250802
Views:
15
>>I obviously did not understand the "reference" part of all that. I wish I understood why this doesn't work.
>
>Ok, I'll try one more time.
>
>When you add an object to the form (or any container object), the object now have an access to the form and its methods/properties.
>
>If you add a reference to the object created with createobject syntax, this object doesn't know the object it's being added as a reference to and thus can not access that object methods/properties.
>
>So, you would have to somehow save the "parent" object inside this "child" object (Hugo's idea) , but it may easily lead to dangling references and other bad things.

I didn't see your other post before I read this one. Making more sense, but not sure how I'm going to handle this. This seems like such a simple functionality that I want that I can't believe that it's this difficult to do.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform