Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behavior with preprocessors
Message
From
04/08/2006 12:17:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/08/2006 11:09:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01142822
Message ID:
01143008
Views:
12
>>>Hi all,
>>>
>>>If you attempt to compile the following code, you will receive a "Syntax Error" error message when the LPARAMETER line is hit.
>>>
>>>
>>>#DEFINE kByRef
>>>#DEFINE kOptional
>>>#DEFINE kInput
>>>#DEFINE kOutput
>>>
>>>lParameter kByRef kOptional myVar
>>>
>>>
>>>For some strange reason two (or more) preprocessor can not be used on the same line when they are declare to nothing. if you remove one of the from the lParameter the line compile as normal.
>>>
>>>Does anyone have any idea why does not tranlate to "LParameter myVar" and compile?
>>
>>Look at message #1123796 and the rest of the thread.
>
>Thanks.
>
>Interesting thread.
>
>Fabio's point about the white spaces between constants is in fact a bug. If I place the second constant after a true clause (variable) the error does not occur.

IOW, it IS a bug - you can have a blank #define, but two of them in a row won't work.

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