Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include file
Message
 
 
To
13/04/2001 09:28:38
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00495254
Message ID:
00495265
Views:
13
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform