RIGHT function

RIGHT(Text, Length?) RIGHT(Text; Length?)

Text

Text or { Text }

The string from which to extract a part.

Length

Number or { Number } (optional)

The number of characters to include. If omitted, 1 is assumed, meaning that only the last character of the text string is returned.

Returns

Text or { Text }

Text from the right side of the given text string.

Returns text from the right side of a text string.

Examples

RIGHT("abcd")RIGHT("abcd")

Returns "d", the last character of "abcd".

RIGHT("abcd", 2)RIGHT("abcd"; 2)

Returns "cd", the last two characters of "abcd".

RIGHT(TextField1, LEN(TextField1) / 2)RIGHT(TextField1; LEN(TextField1) / 2)

Returns the second half of the value of TextField1. LEN returns the length of a text string.