TSC AUTO ID Technology Co., Ltd. 156 Copyright 2013 All Rights Reserved.
RIGHT$( )
Description
This function returns a specified number of characters up from the end of a string.
Syntax
RIGHT$ (X$,n)
The string to be processed
The number of characters to be returned from the right side (end) of the
string
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()