Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom classes instead of global variables
Message
From
17/01/2000 13:52:14
 
 
To
17/01/2000 13:49:41
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00319087
Message ID:
00319115
Views:
13
>>>PUBLIC goSettings
>>>goSettings = CREATEOBJECT('settings')
>>Thanks,
>
>Also, if this is your main program, you shouldn't need PUBLIC. If you create a PRIVATE variable every proc in your app should be able to see it, and then you can say, "I don't use Public variables at all" ;-)

I've never had good luck with private variables. It's too hard to tell when they're in scope. I'd rather just have the one global and know it's always available.

Thanks,

Michelle
Previous
Reply
Map
View

Click here to load this message in the networking platform