Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing Objects (VFP6.0)
Message
From
06/08/2003 04:50:39
 
 
To
05/08/2003 06:37:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00816763
Message ID:
00817203
Views:
18
Hi Kevin,

Not sure I understand your scenario but it sounds as if you have something like:
Container.ObjRef.Address = CREATEOBJECT("Address")
thisform.BizObj = Container.ObjRef.Address
Container.ObjRef.Address = CREATEOBJECT("Address")
and are expecting ThisForm.BizObj to reference the new Address object after the third line executes. This won't work. After the first two lines both the form and container properties reference the same object. After the third the form property will still reference this; the Container property references a new instance of the object. In this case you need to either explicitly set the Form reference (or use thisform.BizObj_Assign)

Regards,
Viv

>>>>
I have an Object reference on a container on a form. The form property holds reference to the object (called thisForm.BizObj).

If the container alters the object reference like so:

this.ObjRef.Address = CREATEOBJECT("Address")
It doesn't actually reflect this change on thisForm.BizObj.Address??
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform