Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope of a form's Property Value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00693357
Message ID:
00693480
Vues:
28
Hi Jim,
I agree, you are right.

>Venelina,
>
>You are mistaken here, storing an object reference into a property takes no more memory than havbong the object exist. Putting an object reference in a property does NOT recreate the object, it simply stores a pointer to the object that already exists. If you store the name of the form then you ar43e right back to having the prpoblem of not knowing what the name of the object is this time. With storing the name of the object you also complkicate all of the code that refers to that obkect;
>
>
>lcObject = Thisform.ObjNameProperty
>&lcObject..Property = "ABC"
>
>
>versus
>
>
>Thisform.oObjRef.Property = "ABC"
>
>
>we havce eliminated one line of code and a macro expansion by storing a reference to teh object instead of storing the object's name.
>
>>Hi Carmen,
>>I would prefer to keep only form's name in the property instead of keeping the entire object. Name will take many-many less memory.
>>
Venelina Jordanova

Outsourcing IT Services Ltd.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform