NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.CURS.FLD
System Variables
106126 Tandem Computers Incorporated 5–11
&SYS.CURS.FLD The &SYS.CURS.FLD system variable contains the name of the input or outvar field
for the most recent data entry from a panel.
&SYS.CURS.FLD
Considerations
For a 6530-type terminal, the cursor is always on an input field, if one exists. For
3270-type terminals, the cursor can be placed on either an input or an outvar field,
if either exists.
If the cursor is positioned on an output field, &SYS.CURS.FLD is null.
If there are no input or outvar fields on the panel, &SYS.CURS.FLD is null.
For more information on outvar field names, see the TYPE operand in the #FLD
panel control statement in Section 6, “Panel Control Statements.”
See also the &SYS.CURS.COL, &SYS.CURS.ROW, and &SYS.CURS.POS system
variables, in this section.
See the panel statement #OPT in Section 6, “Panel Control Statements.”
Example
The following example works only if the panel named “HELP” exists in one of the
NCL panel libraries. The process displays the name of the field after the most recent
input of data from a panel:
PANEL_EX:PROCEDURE
PANEL NAME=HELP
SAY "MOST RECENT INPUT FIELD WAS " &SYS.CURS.FLD
PANELEND
END PANEL_EX