[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

chr

Convert byte value to character value

Declaration

Source position: systemh.inc line 475

function chr(

  b: Byte

):Char;

Description

Chr returns the character which has ASCII value X.

Errors

None.

See also

Ord

  

Return ordinal value of an ordinal type.

Str

  

Convert a numerical value to a string.

Example

Program Example8;

{ Program to demonstrate the Chr function. }

begin
  Write (chr(10),chr(13)); { The same effect as Writeln; }
end.