Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include file
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00495254
Message ID:
00495351
Views:
14
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform