Function Right() Foundation
Extracts part of a character string starting from the end (right).
Right( <cString>, <nCount> ) --> cSubString
Right() returns the last <nCount> characters from <cString> as a character string. When <nCount> equals zero, a null string ("") is returned. When <nCount> is negative or greater than the length of <cString>, <cString> is returned.
The character function Right() extracts part of a character string beginning with the last character. The result is the same as with the call SubStr(<cString>, -<nCount>). The counterpart of Right() is the function Left(), which extracts part of a character string starting at the beginning (left).
The functions Left(), Right() and SubStr() extract parts of character strings. They are often used with the functions At() and RAt(), which determine the position of a substring within a character string.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.