Function Reference


Chr

Returns a character corresponding to an ASCII code.

Chr ( ASCIIcode )

Parameters

ASCIIcode An ASCII code in the range 0-255 (e.g., 65 returns the capital letter A).

Return Value

Success: a string containing the ASCII representation of the given code.
Failure: an empty string and sets the @error flag to 1 if the ASCIIcode is greater than 255.

Remarks

See the ASCII Character Code table for a complete list of available values.

Chr(48) == "0", Chr(57) == "9", Chr(65) == "A", Chr(90) == "Z", Chr(97) == "a", Chr(122) == "z", etc.

Related

Asc, AscW, ChrW, String

Example

#include <MsgBoxConstants.au3>

Local $sText = ""
For $i = 65 To 90
        $sText = $sText & Chr($i) ; Or $sText &= Chr($i) can be used as well.
Next
MsgBox($MB_SYSTEMMODAL, "Uppercase alphabet", $sText) ; Display the characters between 65 to 90.