Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why define constants
Message
From
25/10/2006 10:27:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164235
Message ID:
01164364
Views:
9
>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.



That's called avoiding "magic" numbers. Always a good idea!


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform