Futurebasic/Language/Reference/rightstring
From Wikibooks, open books for an open world
< Futurebasic | Language | Reference
Contents |
[edit] Syntax
subString$
RIGHT$(string$,numChars)
subContainer$$
RIGHT$$(container$$,numChars)
[edit] Revised
May 30, 2000 (Release 3)
[edit] Description
This function returns a string or container consisting of the rightmost numChars characters of string$ or container$$. If numChars is greater than the length of string$ or container$$, the entire string$ 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
[edit] See Also
LEFT$; MID$; INSTR
This page may need to be