|
RIGHT$
Abbreviation: R <SHIFT+I>
TYPE: String Function
FORMAT: RIGHT$ (<string>,<numeric>)
Action: The RIGHT$ function returns a sub-string taken from
the right-most end of the <string> argument. The length
of the sub-string is defined by the <numeric> argument which
can be any integer in the range of 0 to 255. If the value of the
numeric expression is zero, then a null string ("")
is returned. If the value you give in the <numeric> argument
is greater than the length of the <string> then the entire
string is returned.
EXAMPLE of RIGHT$ Function:
10 MSG$="COMMODORE COMPUTERS"
20 PRINT RIGHT$(MSG$,9)
RUN
COMPUTERS
|