Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a NewObject() determine it's Container?
Message
From
06/06/2003 19:27:56
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00797529
Message ID:
00797538
Views:
13
Sorry Sergey,
When I use NewObject, the new object doesn't have a parent.
If you're getting something different, please let me know how you do it.


>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
Bill Morris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform