Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiler Directive... _VFP not allowed?
Message
 
To
08/07/2003 16:01:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00808212
Message ID:
00808369
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
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
	* Error
#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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform