right$()
Return rightmost number of character in string. You can omit the dollar
character so you can alternatively write it as right()
.
Syntax:
string
= right$(
string
,
number
)
string
= right(
string
,
number
)
Example:
a$="hello world"
'next line will print "rld"
print(
right$( a$,3
)
)
'next line will print "o world"
print(
right$( a$,7
)
)
See also left$() and mid$() commands.