Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Constants vs Locals
Message
From
28/09/1999 10:52:14
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00269906
Message ID:
00269935
Views:
24
Bruce,

>Is there any reason to use a #DEFINEd constant instead of a local var? I've seen it done, but am not aware if the rationale, particularly when trying to debug...

You talk about #DEFINE used in ordinary code ? so not about headerfiles are you ?

IMHO you only use locals when they can change during runtime. If they don't you can:

- use hardcoded values
- use #DEFINE if this value applies to more than one instance in code, so maintainability is increased.

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform