Example

Dim MyString
MyString = Len(“VBSCRIPT”) ‘ MyString contains 8.

Note:

The LenB function, used with byte data that is contained in strings, returns the number of bytes represented by a string, rather than the number of characters in a string.