SCREEN SET_CURSOR_REL

SCREEN SET_CURSOR_REL moves the cursor a specified number of rows and columns, relative to the current cursor position.  Positive integers move the cursor to the right for column position and down for row position.  Negative integers move the cursor to the left for column position and up for row position.  Zero indicates the same row or column position as the current cursor position.

SYNTAX

SCREEN SET_CURSOR_REL /USING/ window_id delta_row delta_column

window_id

is an integer system field, Global Storage (GS) field, or user-defined field that contains the window ID assigned to the window.

delta_row

is an integer expression that specifies the number of rows to move the cursor.  If zero, the cursor remains at the current row position.  If the delta row integer value is positive, the cursor moves downward the specified number of rows.  If the delta row integer value is negative, the cursor moves upward the specified number of rows.

delta_column

is an integer expression that specifies the number of columns to move the cursor.  If zero, the cursor remains at the current column position.  If the delta column integer value is positive, the cursor moves the specified number of columns to the right.  If the delta column integer value is negative, the cursor moves the specified number of columns to the left.

EXAMPLE

SCREEN SET_CURSOR_REL USING MAIN_ID 3 3

In this example, the cursor is set at row 5, column 5.  This command moves the cursor to row 8, column 8.

Back to SCREEN SET_CURSOR_ABS    Next page SCREEN SET_KEYPAD_MODE