Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Class.Propreties versus Public Variables
Message
De
12/09/1997 09:08:41
 
 
À
12/09/1997 04:34:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00049766
Message ID:
00049796
Vues:
52
As far as I understand, you want to have one Custom object and instead of each public variable you will have one property in this object.

This is the usual technique when you have an application object. In this case you have just one object with a bunch of properties. Don't worry for just one object. It doesn't take too much memory.

Vlad

>In my application I got to initialize in main program a set of public varibles that I need to retrive fast during the app. execution.
>I don't know how an object created based on a class is stored in memory (and how much memory use) so I can not decide what to use:
>a Custom Type Class with these variable attached as propreties (and CreateObject("...")) or direct public variables to obtain best results.
>
>Thank U!
>Laurentiu
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform