Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a parent's object
Message
From
27/08/2007 18:04:35
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01250681
Message ID:
01250797
Views:
18
>>>>>this.oxHandler = CREATEOBJECT( "EMPS_Handler_Medinotes_Class" )
>>>>
>>>>Ok, syntax aside, that would be a logical approach to this, right?
>>>
>>>I guess we need to step back and re-check your requirements again.
>>>
>>>Do you want to access an oSock object from oHandler? If yes, I still don't see a good way to do it, need to think more.
>>
>>Yeah, I just tried creating oHandler from inside oxServer and it still does not have a .Parent value. I don't get that. How can it be a child and not have a parent? Does it matter where/when I create it inside oxServer? I really thought this would work.
>
>No, see our responses in your other thread. You can not add a new object, you only can add a reference to an object. Therefore you can not access the "parent" object from that reference.

I obviously did not understand the "reference" part of all that. I wish I understood why this doesn't work.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform