Difference between revisions of "Single Textmerge"
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Output lines of text | Output lines of text | ||
Line 48: | Line 41: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] |
Latest revision as of 16:18, 25 November 2009
Purpose
Output lines of text
Syntax
\ <text> | \\ <text>
See Also
Description
The \ and \\ commands are used to output lines of text to the screen, to a file, or to window. <text> may also include expressions which are bracketed by < and >. These expressions will be evaluated before the text is output.
Any spaces, text and delimited expressions following the \ command are preceded by a new line character in UNIX and a carriage return/line feed pair in OpenVMS. The <text> line is then output. Any spaces, text and delimited expressions following the \\ command are not preceded by an end of line marker. The <text> line is then output. Delimited expressions may include table field names, memory variables, and functions. The default text delimiters are < and >.
The SET TEXTMERGE DELIMITERS command may be used to change this default. The SET TEXTMERGE TO command is used to merge text to a file, or a window. The SET TEXTMERGE ON|OFF command determines whether delimited expressions will be evaluated, or output literally. Text is output when it is placed after the \ and \\ commands, or when it is between the TEXT...ENDTEXT commands.
Example
use test set textmerge to balance.txt set textmerge to delimiters to "{{","}}" set textmerge on go top do while balance > 0 \Date: {{date()}} \\Name: {{last_name}} {{first_name}} \Account Number : {{account_no}} \Current Balance : {{balance}} \Credit Limit: : {{limit}} \ enddo set textmerge off set textmerge to
Products
Recital Server, Recital