Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

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

See Also

Feedback