Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where is the best place to declare public variables?
Message
From
24/08/2000 15:39:25
 
 
To
24/08/2000 15:26:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00408953
Message ID:
00408975
Views:
11
>>Conventional wisdom is to steer clear of Public variables as much as possible. If a variable needs global scope throughout the application, declare it in the main ( as Private )
>
>Doesn't seem like that would be any different than setting it PUBLIC.
>Is it?

There are differences, public variables can cause various problems. Jim Booth has discussed this at length in several threads. You might want to search them to get specifics. Nevertheless, some like Public variables and use them. I try to stay away from them as much as possible. As I mentioned, it is "conventional wisdom."
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform