Right$ Function
Syntax
Right[$](S$, Len)
Group
Description
Return the last Len chars of S$.
NOTE: A similar function, RightB, returns the last Len bytes.
Parameters
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$. |
Example
Sub Main Debug.Print Right$("Hello",3) '"llo" End Sub
See also
InStr( ), InStrRev( ), Left$( ), Len( ), Mid$( ), Replace$( )