Left()

Summary

Returns the leftmost n characters of a string.

Syntax

value = Left(string my_string, integer n)

Argument Contents
my_string Any string
n An integer equal to or less than the length of my_string

Returns

A string equal to the leftmost n characters of my_string.

Notes

  • If n is null, returns all of my_string.

See Also

Function Summary
Position() Returns the position of a substring within a string
PositionFrom() Search for the first occurrence of a substring within a string, starting the search at a designated position
PositionTo() Search for the last occurrence of a substring within a string, ending the search at a designated position
Right() Returns the rightmost n characters of a string
Trim() Removes the leading and trailing spaces from a string