.CSRROW

The .CSRROW control variable is used in conjunction with table display panels.

Read syntax diagramSkip visual syntax diagram.CSRROW=CRP-number
Read syntax diagramSkip visual syntax diagramvariable= .CSRROW
where:
CRP-number
Table current-row-pointer number corresponding to the model set on the display where the cursor is to be placed. If the specified row does not have a corresponding model set displayed on the screen, the cursor is placed at the command field. The row will be auto-selected under either of these conditions:
  • If the CSRROW parameter is specified on the TBDISPL service either without AUTOSEL(NO) being specified on TBDISPL or .AUTOSEL(NO) specified as a panel definition statement.
  • If the .CSRROW control variable is specified as a panel definition statement either without AUTOSEL(NO) being specified on TBDISPL or .AUTOSEL(NO) specified as a panel definition statement.

The .CSRROW control variable can appear on the right side of an assignment statement, making it act like a function. Thus, the table row number corresponding to the model set on the display where the cursor is to be placed can be stored in a variable.

Example:
&CROW = .CSRROW