Ascii to Char

Converts an ascii code into a character string

Syntax

charStr = Ascii to Char (asciiCode)

Description

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.

Eg:

' 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