Left$ Function

Language Items List

Definition:

Returns a string representing the first n characters of a string argument.

Syntax:

Left$(strexpr, n)


Syntax Description


strexpr String expression from which the characters in the leftmost portion are returned. This can be any string expression.

n Integer expression indicating how many characters to copy, starting at the leftmost position.

Details:

If the number of characters specified by n is greater than or equal to the number of characters in the source string, an exact copy of the entire source string is returned. If n is 0, the return value is an empty string.

If you are not sure how many characters are in the specified string expression, use Len(strexpr).

See Also:

Len Function
Mid$ Function
Right$ Function