Node:Chr, Next:, Previous:ChDir, Up:Reference



Chr

Synopsis


function Chr (AsciiCode: Integer): Char;

Description

Chr returns a character whose ASCII code corresponds to the value given by AsciiCode.

Conforming to

Chr is defined in ISO 7185 Pascal and supported by all known Pascal variants.

Example


program ChrDemo;
var
  x: Integer;
begin
  for x := 32 to 122 do
    Write (Chr (x))
end.

See also

Character Types, Ord, Char