Returns the specified number of rightmost characters from a character string.
- Specifies the character expression whose rightmost characters are returned.
- Specifies the number of characters returned from the character expression. RIGHTC(В ) returns the entire character expression if nCharacters is greater than the length of cExpression. RIGHTC(В ) returns an empty string if nCharacters is negative or 0.
RIGHTC(В ) is designed for expressions containing double-byte characters. If the expression contains only single-byte characters, RIGHTC(В ) is equivalent to RIGHT(В ).
Characters are returned beginning with the last character on the right and continuing for nCharacters.
This function is useful for manipulating double-byte character sets for languages such as Hiragana and Katakana.