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 |
| 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 | ||