RIGHTC()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to extract substring from right (double byte character sets)

Syntax

RIGHTC(<expC> | <memofield>, <expN>)

See Also

AT(), AT_C(), ATNEXT(), CHRTRAN(), CHRTRANC(), INLIST(), LEFT(), LEFTC(), LEN(), LENC(), OCCURS(), RAT(), RAT_C(), RIGHT(), SET STRESCAPE, STR(), STREXTRACT(), STRLEN(), STRTRAN(), STUFF(), STUFFC(), SUBSTR(), SUBSTRC()

Description

The RIGHTC() function extracts a substring from the right of the character expression <expC> or memo <memofield> of width <expN> characters wide. The RIGHTC() function can be used on character fields in index expressions to extract part of the field in the index key.

Example

cDBright5 = rightc(cDBString,5)