Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a parent's object
Message
 
 
To
27/08/2007 17:43:59
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01250681
Message ID:
01250794
Views:
19
>>>>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform