Char.Chr

Syntax

Chr(CharCode: Integer): Char;

Parameters

CharCode - character code.

Description

The Chr property returns character, which code is passed by the CharCode 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 Main;

Var

s: String;

Begin

s := Char.Chr(100);

End Sub Main;

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

See also:

Char