Jump to content

Futurebasic/Language/Reference/leftstring

From Wikibooks, open books for an open world

LEFT$ and LEFT$$

[edit | edit source]

Syntax

[edit | edit source]

subString$ = LEFT$(string$, numChars)
subContainer$$ = LEFT$$(container$$, numChars)

Revised

[edit | edit source]

May 30, 2000 (Release 3)

Description

[edit | edit source]

This function returns a substring or subcontainer consisting of the leftmost numChars characters of string$ or container$$. If numChars is greater than the length of string$ or container$$, then LEFT$ returns the entire string or container. If numChars is zero, then LEFT$ returns an empty (zero-length) string.

Note: You may not use complex expressions that include containers on the right side of the equal sign. Instead of using:

c$$ = c$$ + LEFT$$(a$$,10)

Use:

c$$ += LEFT$$(a$$,10)

See Also

[edit | edit source]

MID$ function; RIGHT$