$STOP_ON_DIV_BY_ZERO
Handle 4GL division by zero as in V6.
$STOP_ON_DIV_BY_ZERO {=
} 1
|
0
Arguments
1
—application exits when division by zero occurs (default).0
—Uniface sets the result to zero when division by zero occurs and sets $procerror toPROCERR_DIVIDE
.
Defaults
Assignment file: | Any application assignment file |
Section: | [SETTINGS] |
Default value: | 1
|
Description
$STOP_ON_DIV_BY_ZERO determines whether Uniface will exit when a division by zero occurs in 4GL code, or continue, setting the division result to zero.
Caution: This setting is available only for users of version 6 who have previously relied on this behavior. It should not be used unless absolutely necessary. Allowing division by zero to occur in programming is not recommended.
$STOP_ON_DIV_BY_ZERO
$STOP_ON_DIV_BY_ZERO = FALSE