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:
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.
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.