VBScript » Functions » Left

Version: 1.0

Syntax:
Left(String, Length)
String
The String argument is the name of the string you wish to truncate.
Length
The Length argument is the number of characters (including blanks) you wish to save counting from the left side towards the right side of the string.

The Left function returns the left portion of the designated string for a designated length.

There are two mandatory arguments.

Examples

Code:
<% =Left("abcde fghij klmno pqrst uvwxyz", 13)%>
Output:
abcde fghij k
Language(s): VBScript

See Also: