Syntax 

Right[$](S$, Len)


Group 

String 


Description 

Return the last Len chars of S$.

Note: A similar function, RightB, returns the last Len bytes.


Parameters

Description

S$ 

Return the right portion of this string value. If this value is Null then Null is returned.

Len 

Return this many chars. If S$ is shorter than that then just return S$.


See Also 

InStr( ), InStrRev( ), Left$( ), Len( ), Mid$( ), Replace$( )


Example

Sub Main

    Debug.Print Right$("Hello",3) '"llo"

End Sub