EXIT Command [ HP ALLBASE/4GL Developer Reference Manual Vol. 2 ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Reference Manual Vol. 2
EXIT Command
The EXIT command indicates the end of processing in the current logic
block.
Format
EXIT [*COMMIT]
Description
This command indicates the end of the logic block. The command may
appear more than once in a logic block.
When HP ALLBASE/4GL encounters an EXIT command in a function, processing
resumes at the command immediately after the VISIT command in the logic
block if the function was called from within a logic block. If the
function was called from a data screen or menu, control returns to the
data screen or menu.
When the system encounters an EXIT command in a process, processing
resumes with the latest menu displayed. If no menu has been displayed,
the application is terminated. A process initiated via the BACKGRND
command is terminated.
In a function, the optional *COMMIT argument commits the current screen
in the same way as the I{-}COMMIT internal routine from a function key.
If the commit is successful, the function exits normally. You can only
use the *COMMIT argument in the following circumstances:
* In after functions for input fields on data screens.
* In prior functions for display-only fields on data screens,
* In a function called from a function key on a data screen.
The EXIT *COMMIT command overrides the effect of the *ENDFIELD switch.
If you use the EXIT *COMMIT command, HP ALLBASE/4GL commits the current
field even if *ENDFIELD has been set on.
MPE/iX 5.0 Documentation