The chr function


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.


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


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


Operating Systems: All
Standard Pascal: Yes