Text ... EndText
This delimiter pair lets you specify a block of text to be sent somewhere (where depends on other settings) without having to put quotes around it or use a printing command like ?. It's most useful with textmerge. VFP 7 enhanced this command significantly so it can be used to perform textmerge without the need for the SET TEXTMERGE command.
Usage |
TEXT [ TO VarName [ ADDITIVE ] [ TEXTMERGE ] [ NOSHOW ] ] OutputText ENDTEXT |
Example |
* Here's the old way: SET TEXTMERGE TO Text.TXT SET TEXTMERGE ON NOSHOW TEXT This text ends up in the output file. Any variables or functions enclosed in the delimiters will be evaluated. For example, today is <<DATE()>>. ENDTEXT SET TEXTMERGE OFF SET TEXTMERGE TO * Here's the new way: LOCAL cOutput TEXT TO cOutput NOSHOW TEXTMERGE This text ends up in the cOutput variable. Any variables or functions enclosed in the delimiters will be evaluated. For example, today is <<DATE()>>. ENDTEXT |
See Also |