ON Command [ HP ALLBASE/4GL Developer Reference Manual Vol. 2 ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Reference Manual Vol. 2
ON Command
The ON command sets a switch to on.
Formats
{switch_number}
{*ALL }
ON {*BYPASS }
{*ENDFIELD }
{*ENDLINE }
Parameters
switch_number
A number in the range from 1 to 8, representing a user switch.
Description
The ON command sets a switch to the on condition.
You can turn all user switches (number 1 to number 8) on using the
argument *ALL. You can also use the ON command to set the *BYPASS and
*ENDLINE switches on.
The report generator uses the switch *BYPASS to determine if a record is
selected for reporting. The on condition indicates that the record is to
be bypassed.
The report generator uses the switch *ENDLINE to determine if processing
of the current line group should continue. The on condition indicates
that processing of the line group is terminated.
You can also use the ON command to set the switch *ENDFIELD on in a
function called from a function key or a prior function on an input field
on a data screen. Setting *ENDFIELD on terminates input processing for
the current screen field.
Example
ON *BYPASS
During record selection for reporting, this command bypasses the current
file record.
MPE/iX 5.0 Documentation