Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Include file
Message
 
 
À
13/04/2001 09:28:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00495254
Message ID:
00495265
Vues:
12
>>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
-michael

My brain hurt like a warehouse, it had no room to spare, I had to cram so many things to store everthing in there. - David Bowie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform