Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing Objects (VFP6.0)
Message
De
06/08/2003 04:50:39
 
 
À
05/08/2003 06:37:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00816763
Message ID:
00817203
Vues:
19
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??
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform