Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Class.Propreties versus Public Variables
Message
 
To
12/09/1997 04:34:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00049766
Message ID:
00049792
Views:
58
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform