Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Class.Propreties versus Public Variables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00049766
Message ID:
00049792
Vues:
53
>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

IMHO, to create a custom object with properties is more OOP way to do this. I always try to reduce using of public variables to minimum.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform