Left()

Syntax

Result$ = Left(String$, Length)
Description
Returns the specified number of characters from the left side of the string.

Parameters

String$ The string to use.
Length The number of characters to return. If this value exceeds the number of characters of the string, it will be returns the whole string.

Return value

A string holding the specified number of characters from the left side of the string.

Example

  Debug Left("This is Art",4) ; Will display "This"

See Also

Right()

Supported OS

All

<- LTrim() - String Index - Len() ->