Skip to main content
Skip table of contents

f$Word: Insert text


f$Word: Insert text

Insert a text (string) into the active document. For the formatting the document template last used 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 Zeilenumbruch.

Also, tabulators can be jumped to, 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:

Status = f$Word('InsertText','Text','FormatTemplate')

 

Argument

Type

Meaning

 

'InsertText'

String

Keyword

 

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:

Integer

0: Command successfully executed

-1: No active document

Example 1:

Status = f$Word('InsertText', 'This is an example line'+line break, 'Headline 1' )

Example 2:

Tab = f$ZahlZuText( 9, '%c' )
Text = pos.Name + Tab + PriceAsText + line break
Status = f$Word('InsertText', Text, '' )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.