Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class does not see its parent
Message
 
 
To
16/02/2011 10:54:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01500327
Message ID:
01500404
Views:
43
>>And
>>
>>this.oChild= newobject...
>>this.oChild.Initialize(this)
>>
>>
>>Initialize method of the Child class
>>
>>lparameters toParent
>>
>>this.oParent = toParent
>
>Not really, but the first approach expects the parent to know where the child stores the reference - am not in favour of this
>
>
>Third approach = pass the session's reference to the init of the childclass
>this.oChild = createObject('ChildClass', m.this)

Yes, I thought using a separate method will be better.

Ok, thans, used the second method.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform