Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE - Why?
Message
From
31/03/2008 11:07:01
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
31/03/2008 10:55:26
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01306848
Message ID:
01306953
Views:
9
And as I have asked...

Does that really matter?

For twenty variables is it really going to bring the system down?


>As has been explained...
>
>with DEFINEs, the value is substituted at compile time. With variables, it's done at runtime. So, your runtime is faster and consumes less memory.
>
>>If I defined a variable in my main program as a constant (MY_CONSTANT = 10) then there is only one place I need to change it too. Just not getting the real difference here that actually makes a difference in development. I always thought they were something special, but they are just variables that dont change value. If I treat them as constants, then they are constants. What am I missing?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform