MOVE_HORIZONTAL
Moves the active editing position left or right in the current buffer by
the number of characters specified. MOVE_HORIZONTAL is bound to the text
in the buffer and will wrap to the next or previous line if necessary.
Syntax
MOVE_HORIZONTAL (integer)
Parameters
integer The number of characters the editing position moves.
Positive values are to the right. Negative values are to
the left.
Example
The following procedure moves the editing position by eight-line sections
and puts the cursor at the start of a line:
PROCEDURE user_move_by_lines
IF CURRENT_DIRECTION = FORWARD
THEN
MOVE_VERTICAL (+8); ! down a section
ELSE
MOVE_VERTICAL( -8); ! up a section
ENDIF;
MOVE_HORIZONTAL (-CURRENT_OFFSET); ! go to start of line
ENDPROCEDURE;
Related topics
CURSOR_HORIZONTAL MOVE_VERTICAL