CHR$ |
chr$ converts a numerical value into an ascii character.
chr$( exp_ent )
|
Element |
Description |
Restrictions |
|
exp_ent |
Integer numerical expression. |
0 <= exp_ent <= 65535 |
# Building of the character string "ABCDEF...XYZ"
ALPHABET = sigma( I = 65, 90, chr$(I) )
# Extracted from an ascii file reading program
# the field separator is a tabulation[S]adxifs = chr$(9)
# and the recording separator is a line feed # followed by a carriage return[S]adxirs = chr$(10)+chr$(13)
chr$ returns a character whose ascii code corresponds to the argument (if there is a corresponding ascii code).
chr$ is the converse function of function ascii.
The result type is Char.
Refer to the annexes of the programming manual to consult the Adonix internal code table.
|
Error |
Description |
|
ERMODE (10) |
The argument is not of the numeric type. |
|
ERDOM (50) |
Domain error (exp_ent > 65535 or exp_ent < 0). |
|
Copyright © Sage 1999 - 2007 |