chr$

Syntax

result = CHR$(number)

Arguments

result: text

number: integer

Meaning

CHR$ returns the Unicode character for the Unicode value number, a number between 0 and 65536.

Example 1

textvar = "This is line 1" + CHR$(13) + CHR$(10) + ~
         "This is line 2"

Result

With most computer systems, CHR$(13) + CHR$(10) means a carriage return plus line feed. So the two texts will be printed underneath each other when textvar is printed. Use this syntax if you want to include the new line in a text you are putting together. If you are sending text to the printer directly, it's easier to use the output line command.

Example 2

display CHR$(937)

Result

Ω

 

See also

ASC