Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a parent's object
Message
 
 
To
27/08/2007 12:52:57
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01250681
Message ID:
01250684
Views:
12
>This is simplified, but oSock and oHandler are on the same level under the oxServer class. In oHandler is the Acknoledgement procedure that needs to know the current status of the port, which is in oSock. How do I make that reference? This.Parent doesn't seem to work as the oHandler is created before oxServer.
>
>
>
>oxServer
>   oSock
>      State
>   oHandler
>     Acknowledgement procedure (needs to know value of oSock.State)
>
Are you adding oHandler to oxServer? In other words, what is the code instantiating oHandler and oSock?
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