Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using preprocessor directive when in IDE
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01320008
Message ID:
01320014
Views:
14
You can only use built-in functions in #IF.
To control what to compile, you would use #IFDEF/#IFNDEF in combination with #DEFINE/#UNDEF

>
>How do you test an application with preprocessor directive and running (testing) the application in IDE?
>
>For example, say I define a public variable lMyVar and set it to .T.
>
>Then in one of the procedures I have code:
>
>
>#if lMyVar
>   *-- execute code 1
>#else
>   *-- execute code 2
>#endif
>
>
>It looks like that in the IDE mode, no matter the value of lMyVar, the branch Code 2 is executed. I understand that the preprocessor directives are to be used at compile time to include code 1 or code in the .EXE. But how do you test it under IDE?
>
>Thank you in advance for any suggestions.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform