|
<<
Index
>>
|
FutureBasic
|
left, left$, left$$
|
|
function
|
|
Syntax
subCFString =
left(
CFString, numChars )
subPascalString =
left$(
PascalString, numChars )
subContainer$$ =
left$$(
container$$, numChars )
Description
This function returns a substring or subcontainer consisting of the leftmost numChars characters of CFString, PascalString or container$$. If numChars is greater than the length of CFString, PascalString 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
mid function; right