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