Right (strexpr,n)
Returns the rightmost n characters of a string argument. The argument strexpr can be any string expression. The argument n is a Long expression indicating how many characters to return. It must be between 0 and approximately 65,500, inclusive. If n is 0, the return value is a zero-length string. If n is greater than or equal to the number of characters in strexpr, the entire string is returned. To find the number of characters in strexpr, use Length(strexpr).
Example
#This example returns the two rightmost characters of a variable called MyText:
Right(MyText, 2)
Last modified date: 10/22/2024