Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where is the best place to declare public variables?
Message
De
24/08/2000 15:39:25
 
 
À
24/08/2000 15:26:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00408953
Message ID:
00408975
Vues:
13
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform