Double Textmerge

From Recital Documentation Wiki
Revision as of 16:11, 26 October 2009 by Helengeorge (Talk | contribs)

Jump to: navigation, search


Purpose

Output lines of text


Syntax

\ <text> | \\ <text>


See Also

SET TEXTMERGE, TEXT, TREPORT


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 Database Server, Recital Mirage Server, Recital Terminal Developer