NET/MASTER Network Control Language (NCL) Reference Manual

#FLD
Panel Control Statements
6–22 106126 Tandem Computers Incorporated
Considerations
See also the ASSIGN and CONTROL verbs in Section 3, “Verbs.” The ASSIGN
verb can assign a list or range of values to multiple variables. In particular,
Format 2 of this verb can give you information about those variables that have
acquired the MODFLD attribute by being changed as a result of a panel display.
The CONTROL verb has some options, such as the PANELRC option, that can
affect the way in which panels are displayed and processed. In particular, the
CONTROL PANELRC option can be used to specify that you want the NCL
procedure to receive control for further processing, when internal validation
detects an error in the data entered by a user. See the CONTROL verb option
FLDCTL, which must be set if you want to know the input fields that have
changed as a result of a panel display.
See also the ON core statement in Section 2, “Core Statements.” The description of
the ON statement contains a table of system-defined conditions and error
handlers. This table lists conditions, such as the PANEL_SKIP_GMENU
condition, that can occur during the processing of panel skip requests and that
must be handled by the initiating procedure. The #ERR statement does not handle
these conditions.
For more information on the #FLD panel control statement, refer to the NonStop
NET/MASTER NCL Programmer’s Guide. It contains many examples of panel
description files and displays. This guide also discusses the differences between
asynchronous and synchronous panel types.
See the PANEL verb in Section 3, “Verbs,” for a table that summarizes return code
values when displaying panels. For a detailed discussion of these codes (returned
in the &SYS.RETCODE system variable), refer to the NonStop NET/MASTER NCL
Programmer’s Guide.
Examples
The following example shows various uses of the #FLD panel statement. In particular,
it shows properties of the same field character (#) being defined on several statement
lines, and the extension of the properties of the default output field character (+):
#FLD # TYPE=INPUT REQ=YES EDIT=NUM COLOR=RED RANGE=(1,3)
#FLD # BLANKS=TRAIL PAD=_
#FLD ^ TYPE=OUTPUT COLOUR=&COLOUR HLIGHT=&HLIGHT
#FLD $ TYPE=INPUT INTENS=HIGH EDIT=DATE4
#FLD @ HLITE=BLINK
#FLD % JUST=R PAD=-
#FLD _ JUST=ASIS
#FLD + VALIGN=RIGHT JUST=CENTRE