> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/version-1.66/nedyx/clearlines-functions/text-functions/code.md).

# CODE

#### Syntax <a href="#syntax.6" id="syntax.6"></a>

**CODE**(*character*)

* *character* - the character from which the Unicode value is to be returned - ***Value type**: text*

#### Remarks <a href="#remarks.4" id="remarks.4"></a>

* If character is a text with several characters, only the Unicode value of the first character is returned.

#### Examples

CODE with a single character:

**Content =&#x20;**<mark style="color:blue;">**CODE**</mark>(<mark style="color:blue;">#cell1</mark>)

<div align="left"><figure><img src="/files/GeYBBl1alCi9s8QdDHQD" alt=""><figcaption></figcaption></figure></div>

CODE with multiple characters:

**Content =&#x20;**<mark style="color:blue;">**CODE**</mark>(<mark style="color:blue;">#table1</mark>)

<div align="left"><figure><img src="/files/NVzzVLTRA6Q5S1ixpq6g" alt=""><figcaption></figcaption></figure></div>

In combination with the CSVTORANGE function, you can determine all the Unicode values of a text.

In this case, the text *mytext* is first split into its individual letters using the CSVTORANGE function. The CODE function can then be applied to the individual cells.

**Content =&#x20;**<mark style="color:blue;">**CSVTORANGE**</mark>(<mark style="color:blue;">#cell1;""</mark>)

<div align="left"><figure><img src="/files/2EE2a6SpnHp1jZwQH3HX" alt=""><figcaption></figcaption></figure></div>
