Download DUINOMITE USERS MANUAL

Transcript
CHR$ Function
Purpose:
To convert an ASCII code to its equivalent character.
Syntax:
CHR$(n)
Comments:
n is a value from 0 to 255.
CHR$ is commonly used to send a special character to the terminal or printer. For example, you could
add CHR$(13) or CHR$(34) in string.
See the ASC() function for ASCII-to-numeric conversion.
ASCII Codes are listed in page xxx.
Examples:
PRINT CHR$(66);
B
This prints the ASCII character code 66, which is the uppercase letter B.
PRINT CHR$(13);
This command prints a carriage return.