Hi Joe,
in preprocessor expressions, you can't access variables and objects and not invoke the compiler using EXECSCRIPT(). However, almost any other function is at your disposal. In order to compile programs based on the project name, for instance, you could check for the project manager like this:
#IF WExist("PROJECT MANAGER - TEST1")
#DEFINE _Project "Test1"
#ELIF WExist("PROJECT MANAGER - TEST2")
#DEFINE _Project "Test2"
#ELSE
#ENDIF
However, this means that the project manager must be open when you build the project and that you only keep one project open at a time.
Alternatively, you can check into ptoject hooks. For example, you could create an include file that merely defines the project and include it into your main include file.
--
Christof
--
Christof