The number of characters in a specified character string.

Syntax

<expC>.length

<expC>

The character string whose length you want to find.

Property of

String

Description

A string’s length property reflects the number of characters (the length) of a character string. The length of an empty character string is zero.

length is a read-only property.

Other than the syntactic difference of reading a property instead of calling a function, length contains the same value that LEN( ) returns.