Right

Returns a specified number of characters from the right side of a string.

Syntax

«value» Right («String Expression», «Numeric Expression»)

This table describes the parameters:

Parameters Description
string Required. String expression from which the rightmost characters are returned.
length Required; Variant(Long). Numeric expression indicating how many characters to return. If 0, a zero-length string ("") is returned. If greater than or equal to the number of characters in string, the entire string is returned.