Left, LeftB Functions
Data Type: String
The string to be processed.
Data Type: Long
The number of characters to return from the left of the string.
Left and LeftB return a String.
Returns a string containing the left-most
length characters of
length is 0, a zero-length
string (” “) is returned.
length is greater than the
string is returned.
length is less than 0 or
Null, the function generates
runtime error 5, “Invalid procedure call or argument,” and
runtime error 94, “Invalid use of Null,” respectively.
Left processes strings of characters; LeftB is used to process binary data.
Use the Len function to determine the
overall length of
When you use the LeftB function with
length specifies the
number of bytes to return.
There are no Left$ or LeftB$ functions available in VBScript.