Method: Len for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Len for VBS
Method: Len for VBS
Specifies the length of a text.
vLen = Object.Len(string)
| Object | VBS Object with this method. You do not need to specify this object. |
| string | Variant Specifies the text. |
| vLen | Variant Receives the text length. |
The following example specifies the length of the text DIAdem:
Dim MyInt MyInt = Len("DIAdem") Call MsgBox(MyInt) ' Returns 6