left$

Syntax

result = LEFT$(text, number)

Arguments

text, result: text

number: integer

Meaning

Returns the first number of characters of text. If text is shorter than number of characters, the result will be equal to text.

Example

result = LEFT$('ABCdefGH', 2)

Result

result is 'AB'.

See also

RIGHT$