Skip to main content
Previous section   Next section

INPUTNULL

Specifies a null character for INPUT.

Synopsis

INPUTNULL char

Arguments

char An expression that resolves to a single character.

Description

The INPUTNULL statement designates a character to represent the null string. If you specify this character to an INPUT statement, it is saved to the variable as a null string (a string of length 0). This character remains as the designated null string character for the current process until you reset it by specifying INPUTNULL "".

INPUTNULL only affects the INPUT statement. It has no effect on the IN statement or the KEYIN function.

Example

The following example designates the ^ character to represent the null string for INPUT:

INPUTNULL "^"
INPUT @(1,23) inval
?^
PRINT "Value =":inval
Value =
PRINT LEN(inval)
0
Copy code to clipboard

See Also