Returns the number of characters in a string or the number of bytes required to store a variable.QTP-len

Syntax –

Len(string | varname)

Example –

Dim MyString
MyString = Len("VBSCRIPT") ' MyString contains 8.