# JBASE_ERRMSG_NON_NUMERIC

Updated: 10/23/2020, 1:48:27 PM
Created: 10/23/2020, 1:48:27 PM
Last Updated By: Mike Street
Read Time: 1 minute(s)

# Description

Defines behavior when a BASIC program encounters a numeric operation being attempted on a non-numeric value. The default behavior is to raise an error and drop into the debugger.

# Values

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

# Default

0 - Raise an error and drop into the debugger

# Setting

The value stored is 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 PUTENVfunction.

# UNIX

export JBASE_ERRMSG_NON_NUMERIC=3
1

# Windows

set JBASE_ERRMSG_NON_NUMERIC=3
1

Go Back to Error Handling

Go Back to Environment Variables