CODE

CODE returns the numeric Unicode map value of the first character in the argument.

Function category: Text

Syntax

CODE(arg1)

Arguments

Description

arg1

A string.

Example

If we wanted to find the numerical unicode value of a given string, use the following function.

# Find numerical unicode value of a string
CODE("d")
# Returns 100

Notes

Almost the opposite of CHAR, which takes an argument of a numerical Unicode value and returns a string.