Viv
You're slightly incorrect on the detail, it's:
thisform.BizObj = CREATEOBJECT("BizObjClass")
Container.ObjRef = thisForm.BizObj
Container.ObjRef.Address = CREATEOBJECT("Address")
Which should work IMO, but hold-fire for a minute, I've yet to check something else, so I'll let you know.
Thakns
Kev
>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??
>>