Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best approach about #DEFINE constants
Message
From
15/05/2008 21:29:34
 
 
To
14/05/2008 20:14:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01316940
Message ID:
01317524
Views:
10
As I like to say problems occur when "variables don't (vary) and constants that aren't (constant)". Declaring constants as PUBLIC variables is a case of "constants that aren't" -- that is they are susceptible to change when logically they shouldn't. The other problem is when you try to pass these "constants" as parameters -- the variable gets hidden within the called context, so some of your constants could "unexpectedly disappear."
Previous
Reply
Map
View

Click here to load this message in the networking platform