Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory used by Objects
Message
De
24/09/1999 10:54:30
 
 
À
24/09/1999 10:45:28
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00268505
Message ID:
00268513
Vues:
20
AFIAK, VFP doesn't have a function to return the exact memory used by an object. The variable "o" only contains a pointer to a class. That class can be instanciated as a VCX (inside VFP) or as a COM (outside VFP).

As a rule of thumb, you use a variable locally for a method or procedure and use a class property for access in multiple class or module.

HTH
>I have come to learn that when I create an object using
>o=CREATEOBJECT('xxx.xx') and display memory, it shows 1 variable defined and 0 bytes used whereas when I actally declare a variable by o="string", it shows 1 variable defined and n bytes used. I do not know how the object exists without using any memory. Can anyone explain a bit about this? This atleast means to me that accessing object variables are better than using other declared variables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform