Example

Dim MyString, LeftString
MyString = “VBScript”
LeftString = Left(MyString, 3) ‘ LeftString contains “VBS”.

Note:

In the LeftB function, used with byte data that is contained in strings, length specifies number of bytes, rather than number of characters.