Ascii to Char

Converts an ascii code into a character string


charStr = Ascii to Char (asciiCode)


This command will convert an ascii value into the character it represents and return it in a string.

This is useful in order to work with characters that are hard to directly type into strings, such as carriage returns which represent when a new line should be started in a text string.


' the ascii code for a carriage return is 13
' the ascii code for the apple symbol is 240
print "My string with a new line"+ascii to char(13)+"in the middle of it"
print "Isn't "+ascii to char(240)+" great?"

A listing of the ascii codes can be found on the Ascii Codes Explained page.

See also the Char to Ascii and Raw Key Ascii commands.

Table of contents