Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I wish this was in VFP and not VB.....
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00519713
Message ID:
00520761
Views:
43
>I'd appreciate (and I'm sure a whole bunch of lurkers would also appreciate) a piece of code that demonstrates the 'evaluate differently at run-time'.


I haven't read all of this thread and maybe I'm confused what the problem is. But this is my understanding of #DEFINE:

If you (in header file or methods, prgs, etc etc) have #DEFINE in your code, such as:
#DEFINE Now DATE()
And then use it like this:
REPLACE mytable.updated with Now
and
ldTomorrow = Now + 1
And then it being compiled, then compile just replace all the Now with DATE(), so it actually sees the code (before compiling!) as:
REPLACE mytable.updated with DATE()
and
ldTomorrow = DATE() + 1
#DEFINE doesn't "Evaluate" at compile-time nor run-time. There is no "DEFINE"'s in a compiled program. The code is just dublicated. Of cause "Evaulate" could be a play on words of what the compiler is doing.

HTH,
- Erik Niese-Petersen

Crazy Dane in USA.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform