Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compile Constants in a TEXT clause
Message
De
03/11/2008 04:25:21
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01359091
Message ID:
01359092
Vues:
24
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all,
>
>i's possible to include contants in a text to clause ?
>
>
>
>#DEFINE CSJ_LOC	3
>
>TEXT To oPrivatecParamCR.conditionFiltre NOSHOW TEXTMERGE PRETEXT 15
> 		<<.ccondit1>> AND E.nType =  CSJ_LOC AND
> 		ICASE(<<.chkhospitalisés.VALUE>> , E.ltransfert = .F. , .T. )
>  ENDTEXT
>
>
>Good Morning
>
>bernhart

Everything inside a text/endtext block is untouched except the textmerge parts. Try this
#DEFINE CSJ_LOC	3

TEXT To oPrivatecParamCR.conditionFiltre NOSHOW TEXTMERGE PRETEXT 15
 		<<.ccondit1>> AND E.nType =  <<CSJ_LOC>> AND
 		ICASE(<<.chkhospitalisés.VALUE>> , E.ltransfert = .F. , .T. )
  ENDTEXT
If this does not work, you must use a variable instead, in other words
CSJ_LOC=3
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform