SpreadJS Documentation
CODE
SpreadJS Documentation > Formula Reference > Formula Functions > CODE

This function returns a numeric code to represent the first character in a text string. The returned code corresponds to the Windows character set (ANSI).

Syntax

CODE(text)

Arguments

The argument is the text from which you want to determine the code of the first character.

Data Types

Accepts string data. Returns string data.

Examples

CODE(H6)

CODE(R6C8)

CODE(""B"") gives the result 66

CODE(""Buffalo"") gives the result 66

See Also