Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a NewObject() determine it's Container?
Message
 
 
To
06/06/2003 19:07:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00797529
Message ID:
00797532
Views:
11
Would
this.oContainer = This.Parent
work for you?

>When I use NewObject, can the object created determine what container it was created in?
>
>
>MyObj.method()
>  this.addproperty('oNewObject')
>  this.oNewObject('myClass')
>Endproc
>
>define class myClass ....
>  procedure find_container
>    this.oContainer = ??????   && finds MyObj
>  endproc
>
>
>TIA
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform