Chr(Value: Integer): String;
Value. ASCII code.
The Chr method returns character corresponding to the specified ASCII code.
To get the ASCII code corresponding to character, use the String.ASCII method.
Sub UserProc;
Var
i: Integer;
Begin
i := 62;
// Display character corresponding to the ASCII code
Debug.WriteLine("Char(" + i.ToString + ") = " + String.Chr(i));
End Sub UserProc;
After executing the example character corresponding to the ASCII code is displayed in the console window.
See also: