Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a parent's object
Message
From
27/08/2007 13:04:02
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01250681
Message ID:
01250688
Views:
19
>>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?
oxHandler = CREATEOBJECT( "EMPS_Handler_Medinotes_Class" )
oxServer = CREATEOBJECT( "EMPS_Server_Class",m.Port,oxHandler )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform