len

The len function is a numeric function that counts and returns the number of characters in a string. The numeric functions enable you to convert one data type to another.

Syntax

Use this syntax:



number_char = len(string);
where: num_char = integer variable

Example

An example of this function follows:



integer a;
a = len("hello");
// "a" contains the value 5