CHAR

CHAR


CHAP Index Level CLEAR
Syntax CHAR( num.expression )
Category BASIC
Type Function
Description converts a number between 0 and 255 to its corresponding ASCII character equivalent.
Options
See Also statements & functions SEQ num.expression CRT REM PRINT functions
Example crt char(7)

This causes the terminal to beep once.

string = char(27):"k"

This concatenates an "escape" with a "k" and assigns it to "string".

equ am to char(254)

This creates a constant at compile time to reference attribute marks.
Warnings The arguments in the "char" function must be numeric otherwise the [b16] runtime warning message is displayed.

Numbers over 255 in the "char" function are adjusted into the range 0 to 255 by taking the number modulo 256.
Compatibility D3 7.0 AP R83
CHAP Index Level CLEAR