|
Forms | GENERATE |
GENERATE
command in record or table screens
uses the record or table schema to give the equivalent of default
FIELD
commands for every field. GENERATE
in
a Menu screen produces the equivalent of a default CALL
to
every previously defined Record or Table screen. Commands are not physically
created and thus cannot be edited.
The EXCLUDE
and INCLUDE
clauses allow
fields to be nominated which are affected or not by the
GENERATE
and allow specific FIELD
commands
to be combined with a GENERATE
command. When a
FIELD
command is specified for a variable, the variable is EXCLUDED
from the GENERATE
otherwise it
appears on the screen twice. Key fields must be the first fields in a screen
definition.
GENERATE
command is:
GENERATE EXCLUDE | INCLUDE COMMON DATAVARS SCREENS screen, ... SORTIDS VARS variable, ...
ACTIVITIES permissions AT [r][,c] CLEAR 'c' DATA HILITE | VIDEO options LABELS n PAD [n][,m] PROMPT HILITE | VIDEO optionsThe general clauses on the
GENERATE
command apply to all of
the fields generated by the command. The AT
clause refers to
the position of the first field.GENERATE
. When EXCLUDE
is specified, any
variable (screen) not EXCLUDED
is INCLUDED
automatically.INCLUDE
GENERATE
. When INCLUDE
is specified, any
variables (or screens) not INCLUDE
d are
EXCLUDED
.COMMON
DATAVARS
SORTIDS
SCREENS
INCLUDE
d or
EXCLUDE
d in menu screens.VARS
EMPLOYEE
record:RECORD EMPLOYEE / COMPANY.EMPLOYEE TEXT 'This is the Demographic Record' UNDERLINE CENTER AT +2 FIELD ID PROMPT 'Employee ID:' DATA VIDEO INVERSE FIELD NAME PROMPT 'Name of Employee' REQUIRED FIELD SSN PICTURE 'ddd-dd-dddd' GENERATE EXCLUDE VARS ID NAME SSN ENDRECORD