General information
Category:
Coding, syntax & commands
Title:
Define compile time constant - Based on PROGRAM() or Sys(16)
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only