ui.Dialog.setCurrentRow()

The SetCurrentRow() method is used to move the cursor to the new row during INPUT ARRAY or DISPLAY ARRAY statements execution. This method effect is identical to that of the fgl_dialog_setcurrline() function. The method needs two arguments to be passed:

CALL DIALOG.SetCurrentRow(screen_array, row_num)

 

The screen_array argument is the name of the screen array. The row_num is the index of the row in a program array where the cursor must be placed.

 

Note, that control blocks (like AFTER ROW) are ignored when you use the SetCurrentRow() method to move the cursor. In case when multi-selection is enabled, all the selected rows become inactive and the newly specified row is selected.