Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preprocessor question
Message
 
 
To
17/07/1999 10:37:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00242727
Message ID:
00242737
Views:
21
Christian,
You can use #IF to conditionally include files. Note though this is a compile time only feature it isn't going to change things at runtime.

>Hello,
>I'm working with VFP 6.0, and I want to use a header file according to the country version of my program. This would look like following code:
>USE SysVar
>DO CASE
>CASE SysVar.Country = "CURACAO"
> #include Curacao.h
>CASE SysVar.Country = "ARUBA"
> #include Aruba.h
>ENDCASE
>
>However, does the preprocessor work this way? I fear, it will not open the table by compiling.
>The idea is to have different versions of a program without changing anything in the code. I only want to change the "Country" field in my SysVar table.
>Is this possible?
>Thank you for your time!
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform