LEN()

Advantage Concepts

Advantage Expression Engine function that returns the length of a character string

Syntax

LEN(<cString>) à nCount

Parameters

<cString>

The character string to count.

Return Values

LEN() returns the length of a character string as an integer numeric value. If the character string is a null string ("") LEN() returns zero.

Remarks

LEN() is a character that returns the length of a character string. With a character string, each byte counts as one, including an embedded null byte (CHR(0)). By contrast, a null string ("") counts as zero.

Note Advantage Expression Engine functions can be used in expressions such as record filter expressions and index expressions. They are not necessarily scalars supported within SQL statements. For a list of supported SQL scalar functions, see Supported Scalar Functions.

Note Memo, binary, and image fields are not supported in this Advantage Expression Engine function. If memo, binary, or image fields are used with this expression engine function, the Advantage Expression Engine will be unable to evaluate the expression.

See Also

LTRIM()

RTRIM()