Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compiler Directive... _VFP not allowed?
Message
 
À
08/07/2003 16:01:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00808212
Message ID:
00808369
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform