ASCII

Contents


ascii returns the ascii code of the 1st character in a string.

Syntax

   ascii( expr_c )

Parameters

Element

Description

Restrictions

expr_c

Char type expression.

None.

Examples

   I = ascii(CHAINE)

Description and comments

ascii returns the ascii code corresponding to the first character in the expr_c string. To know the character table used by Adonix, refer to the annex chapter.

ascii is the converse function of function chr$.

The type of the result is Integer (from 0 to 65535).

Associated errors

Error

Description

ERMODE (10)

The argument is not a string of characters.

Associated keywords

CHR$ - STRING$


CONTENTS

Copyright © Sage 1999 - 2007