#

# LogiView

## Command 'exit'

| This command cancels the execution of decision table(s) / procedure(s) and returns program control to the DataView event handler.
| If LogiView is called as a mask or field userexit ('lgv_pre_fld', 'lgv_post_fld', 'lgv_pre_mas' ...), the termination is evaluated with an 'exit' error message.
| ### Syntax:
| exit()
| ### I/O parameters:
| - |
| - |
| ### Return value:
| - |
| ### Example:
| Declaration of Variables
| Call of a "post field trigger" decision table ('lgv_post_fld' userexit) for verification of current input:
T | Ln | Con/Act | R 01 | ELSE
B | 10 | sel_value(act_fld) <= | DOCU_INT_1 |
|  | -------------------------- | ---- | ----
A | 20 | put("Size of input too small!") | yes | no
A | 30 | exit() | yes | no
| Result:
| The user cannot move on to the next field until a value is entered that is larger than the one defined in the DOCU_INT_1 numerical variable.
| Please note that the Else clause is required (even if it does not contain any actions). Otherwise the field can never be left since a matching rule has to be found - i.e. the Else clause.
| Functions and commands: Miscellaneous