Table of Contents

CHR$

PET VIC-20 C64 C16 Plus/4 C128 X16

The CHR$() function converts a number between 0 and 255 to its matching PETSCII character (as string).

The inverse function of CHR$() is ASC.

Function header

DECLARE FUNCTION CHR$ AS STRING (charcode AS BYTE) SHARED STATIC INLINE

Examples

PRINT CHR$(147): REM clear the screen