Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using preprocessor directive when in IDE
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Using preprocessor directive when in IDE
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01320008
Message ID:
01320008
Views:
71
Hi,

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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform