Length

Returns the length of a string (in characters) or of a list (in elements).

Syntax

Length(param)
NbCar(param)
NbChar(param)
param = the string or list whose length you want to retrieve

Remarks

An empty string or list will have a length of zero.
If param is not a list or a string, it will be converted to a string, and the length of that string will be returned.

Examples

Length("banana") = 6
Length(List("a","b")) = 2

Classification

Strings Ranges