Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private vs. Public variables
Message
De
31/12/2000 13:01:11
 
 
À
31/12/2000 11:51:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00458199
Message ID:
00458205
Vues:
15
>>>>>>>>>>>>>>
All of the variables on the first page are Public, which is what I want. However all of the variables on the second page are Private. I don't understand why.
>>>>>>>>>>>>>>

I'm not sure why they are private. But why do you want public vars at all? They are not a good idea. They break encapsulation and they can become a maintenance nightmare.

You should change them to be properties of the form, or of some application object, or even of the _screen object. You can use AddObject() to add them at runtime.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform