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?

INPUTNULL

Description

The INPUTNULL statement allows the definition of a character that will allow a null input to be seen by the INPUT@ statement. It takes the general form: 

INPUTNULL expression

Where expression should evaluate to a single character. Subsequently, any INPUT@ statement that sees only this character input before the new-line sequence will NULL the variable in which input is being stored.

If expression evaluates to the empty string '' then the default character of '_' is used to define a NULL input sequence.


Note: 

The INPUT statement does not default to accepting the '_' character as a NULL input. 

An example of use is as: 

0001     INPUTNULL "&"
0002     INPUT @(10,10):Answer,1
0003     IF Answer = "" THEN
0004         CRT "A NULL input was received"
0005     END


Go back to jBASE BASIC.

Was this article helpful?