p$TDV:SMPAPI:EtTxTxt
p$TDV:SMPAPI:EtTxTxt
Insert a text (string) into the active document. Format of previously-used document template is applied, however an individual document template can be used as well.
The text may contain line breaks. If the text is to be placed on a single line it has to end with a line break. The character for the line break has the ASCII-Code 13 ("Carriage Return"). This character is available directly in ePOS in the preset parameter line break.
Tabulators can be jumped to as well, but have to be defined in the according document template. This is conducted by simply inserting the tabulator character (Ascii-Code 9) into the text.
Syntax: | p$TDV:SMPAPI:EtTxTxt( Text, FormatTemplate ) | ||
| Argument | Type | Meaning |
| Text | String | Text to be inserted |
| FormatTemplate | String | Name of an existing Microsoft Word Format template which is to be employed to format this text, or an empty text ('') |
Result: | - |
| |
Example 1: | p$TDV:SMPAPI:EtTxTxt( 'This is an example line'+line break, 'headline 1') | ||
Example 2: | Tab = f$ZahlZuText( 9, '%c' ) | ||