Len   Function

Returns the count of the number of characters contained in a String variable or expression.

...Len ( string )

Prerequisites

None

Parameters

string

A required String value.  The string can be a String variable, constant, method or concatenated value.

Remarks

Returns the Integer count of the number of characters contained in the specified string. If the value of the string is empty, a count of 0 is returned.

Examples

Dim ii As Integer
ii = Len("123456") ' ii will be set to 6

See Also

Strings |string.Length