CHAR

The CHAR function interprets an integer value as an ASCII value and returns a single character string. It is the inverse of the ASC function.

Syntax

CHAR( INT ascii )

Parameters

ascii
An ASCII value.

Return value

A STRING value containing the character whose ASCII value corresponds to ascii. If the value is greater than 255, then only the least significant bits are used. If the value is zero, then a string containing a nul character is returned.

Example

PRINT("ASCII value 74 is '", CHAR(74), "'\n");

See Also