Left
The Left function returns a specified number of characters from the left side of a string.
Syntax :
Left(string,length)
Parameters | Description |
---|---|
string | Required. The string to return characters from. |
length | Required. Specifies how many characters to return. If set to 0, an empty string ("") is returned. If set to greater than or equal to the length of the string, the entire string is returned. |
Example :
s = Left("Test",2)
Result :
s=Te