Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom classes instead of global variables
Message
 
 
À
17/01/2000 13:49:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00319087
Message ID:
00319115
Vues:
12
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform