SCREEN SET_CURSOR_ABS

SCREEN SET_CURSOR_ABS moves the cursor to a specified row and column position.

SYNTAX

SCREEN SET_CURSOR_ABS /USING/ window_id, row 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.

row

is an integer expression that specifies the absolute row position to which the cursor will move from the current cursor position.  If zero, the cursor remains at the current row.

column

is an integer expression that specifies the absolute column position to which the cursor will move from the current cursor position.  If zero, the cursor remains at the current column.

EXAMPLE

SCREEN SET_CURSOR_ABS USING MAIN_ID 5 5

In this example, the cursor moves from the current cursor position to row 5, column 5.

Back to Statements and Commands    Next page SCREEN SET_CURSOR_REL