Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two references to one object
Message
 
 
To
25/02/2004 03:59:02
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00880607
Message ID:
00880649
Views:
10
>Hi.
> We have two properties ("prop1", "prop2") that references the same object
>in this way:
>
> ***************
> obj.prop1=createObject("myobject")
> obj.prop2=obj.prop1
> ***************
>
> When we are destroying the object "obj", we need to know who has been the
>creator of the object "myobject". Are there any differences between
>"obj.prop1" and "obj.prop2" for solving this question.

Nope, the's no difference and there's even no relationship between 'obj' object and the one which reference is stored in those properties.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform