Function Reference

Chr

Returns a character corresponding to an ASCII code.

Chr ( ASCIIcode )

 

Parameters

ASCIIcode An ASCII code (e.g., 65 returns the capital letter A).

 

Return Value

Returns a string containing the ASCII representation of the given code.

 

Remarks

The parameter is converted to a positive integer between 0 and 255 if not already one.
Chr(48) == 0, Chr(57) == 9, Chr(65) == "A", Chr(90) == "Z", Chr(97) == "a", Chr(122) = "z", etc.
A complete ASCII table is in the Appendix.

 

Related

Asc

 

Example


$text = ""
For $i = 65 to 90
    $text = $text & Chr($i)
Next
MsgBox(0, "Uppercase alphabet", $text)