Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define compile time constant - Based on PROGRAM() or Sys(16)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Define compile time constant - Based on PROGRAM() or Sys(16)
Miscellaneous
Thread ID:
00929806
Message ID:
00929806
Views:
52
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
Next
Reply
Map
View

Click here to load this message in the networking platform