CHR$

Contents


chr$ converts a numerical value into an ascii character.

Syntax

   chr$( exp_ent )

Parameters

Element

Description

Restrictions

exp_ent

Integer numerical expression.

0 <= exp_ent <= 65535

Example

   # 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)

Description and comments

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.

Associated errors

Error

Description

ERMODE (10)

The argument is not of the numeric type.

ERDOM (50)

Domain error (exp_ent > 65535 or exp_ent < 0).

Associated keywords

ASCII-STRING$


CONTENTS

Copyright © Sage 1999 - 2007