ENTER Command [ HP ALLBASE/4GL Developer Reference Manual Vol. 2 ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Reference Manual Vol. 2
ENTER Command
The ENTER command specifies the number of the next command step to be
executed in the current logic block.
Formats
ENTER {step_number}
{data_ref }
Parameters
step_number
An integer number in the range 1 to 99.
data_ref
May be one of the following, whose content is a number in the range 1 to
99:
* Numeric constant.
* Variable or calculated item.
* Screen field name.
* Scratch-pad field name.
* File record field reference.
* Work area field reference.
Description
The ENTER command is used to unconditionally GOTO the specified command
step within the current logic block.
If the content of data_ref does not refer to a valid step in the current
logic block at run time, the logic block exits. If data_ref contains a
non-integer value, it is truncated to the next lowest whole number to
obtain the number of the next step to be executed.
Example 1
ENTER 12
This command causes step 12 to be executed next.
Example 2
ENTER V-MONTH
This command causes HP ALLBASE/4GL to execute the step whose number is
contained in the variable MONTH.
MPE/iX 5.0 Documentation