Right Function

Syntax:

Right[$](S$, Len)

Group:

String

Description:

Returns the last Len chars of S$.

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

Parameters:

Parameter

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$( )