Char.Chr

Syntax

Chr(CharCode: Integer): Char;

Parameters

CharCode. Character code.

Description

The Chr property returns the character, ASCII code of which is passed as the input parameter.

Comments

To get the character, which ASCII code is greater than 127, pass the character code in Unicode encoding to the CharCode parameter.

Example

Sub UserProc;
Var
    s: String;
Begin
    s := Char.Chr(100);
End Sub UserProc;

After executing the example the "s" variable contains the character, which ASCII code is 100.

See also:

Char