Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why define constants
Message
 
 
To
25/10/2006 07:10:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164235
Message ID:
01164339
Views:
16
Jim,

>In general my view is that #DEFINEs are more trouble than they're worth.

I disagree.
* WdConstants 

#define wdUndefined  9999999
#define wdToggle  9999998
#define wdForward  1073741823
#define wdBackward  -1073741823
#define wdAutoPosition  0
#define wdFirst  1
#define wdCreatorCode  1297307460
I'd really much rather have wdBackward rather than -1073741823 in my code.

The only downfall to .h files is the VFP doesn't have a real MAKE engine that understands the files that need to be recompiled because of a changed .h file. Fortunately a rebuild all doesn't take too much time.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform