codepoints

Used with the number function to designate codepoints as a separate portion of a string.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 7.0 Security:

# Syntax

codepoints

# Examples

get the number of codepoints of tString

# Description

Use the codepoints keyword to count the number of codepoints making up a string.

A codepoint refers to the integer identifiers associated with Unicode characters. A single character is composed of one or more codepoints.

Use the expression

the number of codepoints of tString

to find out how many codepoints make up a Unicode string.

# Tags

# See

- **keyword:** characters, codepoint, codeunits, character, string, codeunit, bytes, byte - **glossary:** function - **function:** number