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

Ok, that's a good point; it can't be changed unless you actually reDEFINE it.
Previous
Reply
Map
View

Click here to load this message in the networking platform