RIGHT$( )
Description
This function returns a specified number of characters up from the end of a string.
Syntax
RIGHT$ (X$,n)
Parameter
X$
n
Example
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
A$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
D$=RIGHT$(A$,10)
CLS
TEXT 10,10,"3",0,1,1,A$
TEXT 10,150,"3",0,1,1, "10 RIGHT CHARS: "+D$
PRINT 1
EOP
DEMO
See Also
DOWNLOAD, EOP, END, LEFT$(), LEN(), MID$(), STR$(), VAL()
Description
The string to be processed
The number of characters to be returned from the right side (end) of the
string
Result
225
Need help?
Do you have a question about the TTP-243 Series and is the answer not in the manual?
Questions and answers