Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preprocesor bug
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01123796
Message ID:
01123809
Views:
16
You seem to be missing something. #DEFINE is normally used to assign a preprocessor value to a constant.
#DEFINE ConstantName eExpression...

Which means in effect "When I compile my executable, anytime VFP encounters the constantname it will replace it with eExpression"



>Run this example:
>
>#define INP
>#define REF
>#define OUT
>
>? INP REF OUT && Variable 'REF' is not found.
>? INP REF     && Variable 'REF' is not found.
>? INP
>
>? INP OUT REF && Variable 'OUT' is not found.
>? INP OUT     && Variable 'OUT' is not found.
>
>
>
>Why preprocesor ignoring each second constant at compiling?
>
>MartinJ
Previous
Reply
Map
View

Click here to load this message in the networking platform