CODE (ANSI code of a character)

<< Click to Display Table of Contents >>

CODE (ANSI code of a character)

Syntax:

CODE(Text)

Description:

This returns the ANSI code value of the first character in the specified text string.

Example:

CODE("A") returns 65

CODE("Arthur") also returns 65

CODE(" ") returns 32

CODE("!") returns 33

CODE("") returns 0

CODE(CHAR(123)) returns 123

See also:

UNICODE, CHAR, UNICHAR