String.Chr

Syntax

Chr(Value: Integer): String;

Parameters

Value. ASCII code.

Description

The Chr method returns character corresponding to the specified ASCII code.

Comments

To get the ASCII code corresponding to character, use the String.ASCII method.

Example

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:

String