Skip to content

Len - Built-in String Function

Purpose

Len returns the number of characters in a string.

Syntax

Len(str)

Arguments

Argument Required Description
str Yes Any valid string expression

Returns

Variant with an integer (VT_I4 or VT_I8) value

Example

Let sTest = "Hello World"
Return Len(sTest) // returns 11

See Also

Notes

  • When str cannot be converted to a string, a runtime error is generated.