string | (String) Text string from which the leftmost characters are returned. |
---|---|
length | (Integer) Numeric expression specifies how many characters to return.
If 0, then a empty string ("") is returned. If greater than or equal to the string length, then the entire string is returned. |
Dim sString, LeftString
sString = "VBScript"
LeftString = Left(sString, 3)
' LeftString contains "VBS"