Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JBASE_ERRMSG_DIVIDE_ZERO

Description

Defines behavior in a BASIC program when the divisor of an arithmetic division results to a value of '0' (zero). The default behavior is to raise an error and drop into the debugger.


Values

ValueDefinition 
1Don't display an error message
2Don't enter the debugger
16Caller to place "0" in the target variable after operation
32Caller to place "" (null) in the target variable after operation
64Caller to leave target variable alone after operation
124Caller to place source variable in the target variable after operation


Default

0 - Raise an error and drop into the debugger


Setting

The value stored in a bit mask so different behaviors can be combined by adding them together.

For example, to suppress the error message and avoid going into the debugger, set the variable to 3.

As per normal environment variables, it can be set at any time or in a BASIC program with the jBC PUTENV function.

Unix

export JBASE_ERRMSG_DIVIDE_ZERO=3

Windows

set JBASE_ERRMSG_DIVIDE_ZERO=3


Go Back to  Error Handling

Was this article helpful?