Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define compile time constant - Based on PROGRAM() or Sys(16)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Define compile time constant - Based on PROGRAM() or Sys(16)
Divers
Thread ID:
00929806
Message ID:
00929806
Vues:
49
Does anyone know of an environmental variable, or how to define a compile time constant based on the name of the application currently being compiled?

VFP8.0 doesn't seem to process PROGRAM() or SYS(16) in #IF statements, and doesn't accept anything like _VFP.activeproject.name, etc.

#IF PROGRAM(0)='MYPROG1'
#DEFINE abcd .f.
#ENDIF
#IF PROGRAM(0)='MYPROG2'
#DEFINE xyz .f.
#ENDIF

Thanks in advance,
Bob
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform