Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preprocesor bug
Message
From
21/05/2006 08:41:40
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01123796
Message ID:
01123810
Views:
19
Hi,
Sorry for the delay, called away.
Not sure what your trying to achieve, but maybe this:-
#define REF "something"
#define INP "something else"
#define OUT "anything"

? INP, REF, OUT
>No...
>This source code save as xparam3.prg and recompile it. Look to err file.
>
>#define INP
>#define REF
>#define OUT
>#define CHNG
>
>PROCEDURE test(INP REF OUT CHNG luPar1, REF luPar2)
>
>
>Result:
>
>PROCEDURE test( REF  CHNG luPar1,  luPar2)
>Error in line 7: Syntax error.
>
>
>Why don't replace constants REF and CHNG? But constants INP and OUT are replaced.
>
>MartinJ
>
>>Are they keywords or system variables.?
>>
>>>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
Regards N Mc Donald
Previous
Reply
Map
View

Click here to load this message in the networking platform