Skip to main content
Skip table of contents

f$Word: MoveCursor


f$Word: MoveCursor

Move the cursor by the specified number of units.

The cursor is usually located at the end of the document to be generated. A new component is always inserted at the position of the cursor and the cursor is then moved to the end of the inserted table.

In case of a table at the end of the text component, Word automatically inserts a space character which cannot be deleted. If the table is to be continued afterwards the cursor can be moved upwards to directly behind the table by using this function. If the next text component begins with a table again, the output table is continued at this point.

Syntax:

Status = f$Word('MoveCursor','Unit','Amount')

 

Argument

Type

Meaning

 

Move cursor

String

Keyword

 

Unit

String

The curser is to be moved by unit:

1 – Character
2 – Word
3 – Sentence
4 – Section
5 – Row
6 – Complete document
9 – Column
10 – Row
12 – Cell
15 – Table

 

Number

String

Number of units

Result:

Integer

0: Command successfully executed

-1: No active document

Example:

Status = f$Word('MoveCursor','5','-1') moves the cursor up 1 line

JavaScript errors detected

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

If this problem persists, please contact our support.