Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#define
Message
From
20/04/2018 05:59:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/04/2018 23:35:45
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01659466
Message ID:
01659549
Views:
54
>>> #DEFINEd constants are not recognized as such when used in literal strings delimited with quotation marks - " or '.
>
>Anticipate barrels of laughs if somebody #DEFINEs CR chr(13) and then uses square brackets for all their string delimiters!
>
>[A good way to
>eate mischief!]

Since the #defines go into .h files, I prefix all of them with h - so it would be #define hCR 0h0d. The number of words beginning with h being rather low, this decreases the chances for this. And I definitively don't mention UNHCR in bracketed strings :).

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