Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile Constants in a TEXT clause
Message
From
03/11/2008 04:25:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01359091
Message ID:
01359092
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform