Previous Topic: Define Variable for Uppercase DataNext Topic: Switch Sessions in an ACL/E Program


Position the Cursor

After locating a string on the screen with a SEARCH statement, you can position the cursor in the input field immediately following it by using the &LOC variable and a TABF statement. &LOC contains the row-column coordinates of the first position of the string.

The following statements move the cursor to the input field following the string "ACCOUNT NUMBER":

SEARCH 'ACCOUNT NUMBER' FIND 'ACCOUNT NUMBER' ON THE SCREEN
SET CURSOR,&LOC         MOVE THE CURSOR TO THE TEXT 
TABF 1                  TAB TO THE NEXT INPUT FIELD