Contents | Prev | Next

7.2.5 The chr function

Description

The chr function returns the character whose ordinal value is equal to the parameter passed to it. So if X is the parameter passed to this function, then the value returned by this function Y is the character value satisfying the following equation:

X = ord(Y)

NOTE: It is an error if there is no character whose ordinal value is equal to the parameter.

Parameter

The chr function's only parameter is an expression of integral type.

Example

   chr(64) returns '@' (assuming the ASCII or ANSI character set).

Portability

Operating Systems: All
Standard Pascal: Yes

Contents | Prev | Next