Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preprocessor question
Message
From
17/07/1999 10:37:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Preprocessor question
Miscellaneous
Thread ID:
00242727
Message ID:
00242727
Views:
55
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!
Christian Isberner
Software Consultant
Next
Reply
Map
View

Click here to load this message in the networking platform