CHR() Function - Convert Integer to Character

Syntax

CHR(int{,ERR=lineref})

Description

The CHR() function returns the ASCII value of an integer.

Parameter

Description

int

Integer to be converted to ASCII. It must be in the range of 0 to 255.

ERR=lineref

Branch to be taken if an error occurs during execution.

The ASC() function is the complement to CHR(). For example, ASC(CHR(X)) returns the value X.

Examples

>PRINT CHR(90)
Z
>PRINT CHR(52)
4

See Also

Functions - Alphabetical Listing