Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preprocesor bug
Message
From
21/05/2006 23:45:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/05/2006 23:30:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01123796
Message ID:
01123865
Views:
12
>I am not sure how relevant the following is for the discussion, but note that whatever you #define need not be a valid expression. It is just text which is replaced before the actual compilation phase. In theory, this might be used to your advantage, sometimes - although it might also make the program quite confusing.
>
>Here is an example:
>
>
>#define mydef "this is
>
>clear
>? mydef a text"
>
>
>The output shows This is a text

You're right... just recently I found some piece of my old FPD2.6 code, with

#define _out fwrite(h, chr(9)+

... _out "some string")

And as Fabio points out, an empty string is also a string... so, how does one #Define an empty string (not a pair of quotes)?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform