Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Include file
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00495254
Message ID:
00495351
Vues:
15
>>>Does the variables declared in the include file have to be in uppercase?
>>>If not, when referencing these variables, is it case sensitive?
>>>
>>>
>>>Thanks
>>Shortly, No and No.
>
>>I guess you are talking about #DEFINE Preprocessor Directive that specifies a >compile-time constant name not variable.
>>According to VFP Constant Naming Conventions 'It is recommended that constants >be entered in uppercase'.
>
>One other suggestion: Keep constant names long and descriptive, otherwise VFP might 'expand' the constant's name within a variable's name (for example) and screw up the works... (can be a bitch to find ;-))
>
>eg. use something like DEFAULT_FORM_WIDTH (vs. WIDTH) as a constant.
>
>HTH

Don't use reserved VFP words as constant names. Just recently there was a thread about readonly not perform as expected. It turns out, that this was defined as a constant.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform