number_of_characters

Use the number_of_characters function to determine the number of characters in a text.

The function is capable of handling Unicode characters and word processor instructions.

 number_of_characters ( input )

The result of this function is of type NUMBER.

This function has one parameter:

  • input, type TEXT. The text with length to be determined.

The input is always converted to Unicode Normalization Form C (NFC). Tabs, paragraph breaks and line breaks are handled as characters. Other word processor content, such as layout switches and graphical objects, is not counted when calculating the length.

Examples

number_of_characters (“abcdefgh”)
Results in 8

number_of_characters (“”)
Results in 0

The number_of_characters function supercedes the length function.