Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best approach about #DEFINE constants
Message
 
 
À
14/05/2008 14:56:41
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01316940
Message ID:
01317117
Vues:
19
>>You may have one public global object (or _screen) and have these constants to be its properties.
>>
>>Or you would have to include this include file in every form / program where you want to use them.
>>
>>I see no other better way in VFP.
>
>Actually, no. You would learn more by accepting that public variables are not recommended and trying to get away from them completely. Properties on the public object that are also public are no better than public variables.

Ok, what you're suggesting to use for GLOBAL constants in VFP?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform