Right$ Function

Language Items List

Definition:

Returns the rightmost characters of the designated string argument as specified by n.

Syntax:

Right$(strexpr, length)


Syntax Description


strexpr String expression from which the characters in the rightmost portion are returned. This can be any string expression.

length Integer expression of type Long, indicating how many characters to return, starting at the rightmost position.

Details:

If length is 0, an empty string is returned. If length is greater than or equal to the number of characters in strexpr, an exact copy of the entire source string is returned.

If you are not sure how many characters are in the specified string expression, use Len(strexpr).

Right returns a String.

See Also:

InStr Function
Left$ Function
Len Function
Mid, Mid$ Function