RIGHT$¶
Function¶
RIGHT$ returns the last n characters of a given string.
Syntax¶
RIGHT$(“STRING”,N)
where N is the number of rightmost characters to be returned.
Examples¶
RIGHT$("ABCDEF",3)
returns DEF
Remarks¶
Both string and n must be enclosed in parentheses and can be expressions. If length of the string is less than n then the entire string is returned.
If A$ = “ABCDEF” then:
RIGHT$(A$,0)
= null stringRIGHT$(A$,20)
= ABCDEF