目录

# CODE

Returns a numeric code for the first character in a text string.

#### 语法

CODE("Text")

Text is the text for which the code of the first character is to be found.

大于 127 的代码会依赖于您系统的字符映射 (例如 iso-8859-1、iso-8859-2、Windows-1252、Windows-1250)，因此可能不能移植。

#### 示例

=CODE("Hieronymus") returns 72, =CODE("hieroglyphic") returns 104.

The code used here does not refer to ASCII, but to the code table currently loaded.

相关主题

CODE wiki page.

文本函数