Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Left - function of language VBScript

Description:
Returns a specified number of characters (substring) from the left side of a string.
Syntax:
Left(string As String, length As Integer) As String
Calling:
s = Left(string, length)
Parameters:
string(String) String expression from which the leftmost characters are returned.
length(Integer) Numeric expression indicating how many characters to return. If 0, a empty string ("") is returned. If greater than or equal to the number of characters in string, the entire string is returned.
Note:
To determine the number of characters in string, use the Len function.
Example:
Dim sString, LeftString
sString = "VBScript"
LeftString = Left(sString, 3) 'LeftString contains "VBS"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice