Name
RightStr -- return rightmost characters of a string
Synopsis
var$ = RightStr(string$, len[, encoding])
Function
Returns the rightmost len characters from string$.

The optional encoding parameter can be used to set the character encoding to use. This defaults to the default string encoding set using SetDefaultEncoding(). See Character encodings for details.

Inputs
string$
source string
len
number of characters to return
encoding
optional: character encoding to use (defaults to default string encoding) (V7.0)
Results
var$
resulting string
Example
test$ = RightStr("Hello World!", 6)
Print(test$)
Prints "World!" to the screen.

Show TOC