Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange behavior with preprocessors
Message
From
03/08/2006 16:57:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Strange behavior with preprocessors
Miscellaneous
Thread ID:
01142822
Message ID:
01142822
Views:
54
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?
Greg Reichert
Next
Reply
Map
View

Click here to load this message in the networking platform