Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why define constants
Message
From
25/10/2006 11:59:59
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
25/10/2006 11:50:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164235
Message ID:
01164437
Views:
12
>>Sorry for you Jim, but you are 100% wrong. <g>
>
>OK. Just tell me how you know that.
>
>Surely you're not relying on a DISPLAY MEMORY command output as the "proof"?

Jim u can read the VFP help FOR the #DEFINE
This was taken from the beguinning.

Creates and releases compile-time constants.

You can use the #DEFINE and #UNDEF preprocessor directives to create compile-time constants in programs. By creating constants with #DEFINE instead of using variables, you can reduce memory consumption, increase performance, and simplify programs.

To create a constant with #DEFINE, specify the constant's name with ConstantName and its value with eExpression. When the program is compiled, text substitution is performed and the constant value expression is substituted for the constant name wherever it appears in the program. You can stop the substitution for the constant by issuing #UNDEF.
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform