len

Return the number of characters in a string.

Syntax: x = len(variable)

variable is the required string variable.

Example:

Dim s(20) As String
s="Testing"
a=Len(s)    ' a=7

Also See: