
|
<<
Index
>>
|
FutureBasic
|
right, right$, right$$
|
|
function
|
|
Syntax
subCFString = right( CFString, numChars )
subPascalString = right$( PascalString, numChars )
subContainer$$ = right$$( container$$, numChars )
Description
This function returns a string or container consisting of the rightmost numChars characters of CFString, PascalString or container$$. If numChars is greater than the length of CFString, PascalString or container$$, the entire CFString, PascalString or container$$ is returned. If numChars is less than 1, an empty (zero-length) string is returned.
Note
You may not use complex expressions that include containers on the right side of the equal sign. Instead of using:
c$$ = c$$ + right$$(a$$,10)
Use:
c$$ += right$$(a$$,10)
Example
print right$("Nebraska", 3)
program output:
ska
See also
left; mid; instr