CHR - convert integer to character.

Usage:

var
    i : integer;
    c : char;
  ...
c := chr(i);

Where:

i
is an integer between 0 and 255.
c
is the ASCII character that corresponds to the given integer.

Description:

The "chr" function converts an integer expression to its corresponding ASCII character. In this respect, "chr" is the inverse of the "ord" function since

chr( ord(c) )

is the original value of the "char" variable "c" and

ord( chr(i) )

is the original value of the integer varible "i".

See Also:

expl pascal lib ord

Copyright © 1996, Thinkage Ltd.