Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preprocessor question
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Preprocessor question
Divers
Thread ID:
00242727
Message ID:
00242727
Vues:
59
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform