Returns the character associated with the specified character code.
Chr(charcode)
The charcode argument is a number that identifies a character.
Numbers from 0 to 31 are the same as standard, nonprintable ASCII codes. For example, Chr(10) returns a linefeed character.
Note Another function (ChrB) is provided for use with byte data contained in a string. Instead of returning a character, which may be one or two bytes, ChrB always returns a single byte.
Asc Function, Str Function.
This example uses the Chr function to return the character associated with the specified character code.
MyChar = Chr(65) ' Returns A.= Chr(97) ' Returns a.= Chr(62) ' Returns >.= Chr(37) ' Returns %.