Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE - Why?
Message
From
31/03/2008 10:19:49
 
 
To
31/03/2008 10:10:12
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01306848
Message ID:
01306939
Views:
10
Hi Jay,

IMHO, defines will offer you a much better handling, in case that more than one developer has to handle code in a bigger project. A 'constant' that you specify in your load or init-event can always be changed by someone who isn't so much involved in your kind of coding. A DEFINE will always be unchangeable during runtime so the newbie to your project won't be able to mess with your 'constant', which might lead to some rather unexpected errors.
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform