# 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:

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

CODE with multiple characters:

<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.&#x20;

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.

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/version-1.52-preview/clearlines-functions/text-functions/code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
