Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE - Why?
Message
From
31/03/2008 06:10:12
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
30/03/2008 19:48:52
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:
01306875
Views:
6
>What is the simplest explanation as to why these are needed? Why not just set regular variable values? So what if they are constant and don't change?

#define PI 3.14

you know pi is about 3.14 and it doesn't change. if you have some numbers and if you want see these numbers more clearly in code you use constants.

r=3
chamber = PI * r ** 2
Previous
Reply
Map
View

Click here to load this message in the networking platform