BASIC CHR$ Function - fvdhoef/aquarius-plus GitHub Wiki

CHR$

TYPE: BASIC String Function


FORMAT: CHR$ (number)

Action: This function converts an Aquarius ASCII code to its character equivalent. See plusBASIC ASCII Table for a list of characters and their codes. The number must have a value between 0 and 255, or an Illegal Quantity error error message results.

EXAMPLES

10 PRINT CHR$(65) : REM 65 = UPPER CASE A
20 A$=CHR$(13) : REM 13 = RETURN KEY
50 A=ASC(A$) : A$ = CHR$(A) : REM CONVERTS TO ASCII CODE AND BACK