Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

CHR$

Description

CHR$ is a string function that generates strings from numeric values (a.k.a ASCII values). These string have always a length of 1, since an ASCII value represents exactly one character.

Example

This little example prints the string "ABC" that is constructed from ASCII values

outmode -2
let a$ = chr$(65) + chr$(66) + chr$(67)
print a$

Remarks

Greater arguments than 255 are allowed, but all bits above bit 7 are truncated.
The inverse function of CHR$ is ASC. Please see also the ASC page.