Difference between revisions of "SUBSTRC()"
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Function to perform substring extraction (double byte character sets) ==Syntax== SUBSTRC(<expC> | <memofield>, <expN1> [,<expN2>]) ==See Also== AT(), AT_C(...") |
Yvonne.milne (Talk | contribs) |
||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[AT()]], [[AT_C()]], [[ATNEXT()]], [[CHRTRAN()]], [[CHRTRANC()]], [[CONCAT()]], [[INLIST()]], [[LEFT()]], [[LEFTC()]], [[LEN()]], [[LENC()]], [[OCCURS()]], [[RAT()]], [[RAT_C()]], [[RIGHT()]], [[RIGHTC()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRLEN()]], [[STRSTR()]], [[STRTRAN()]], [[STUFF()]], [[STUFFC()]], [[ | + | [[AT()]], [[AT_C()]], [[ATNEXT()]], [[CHRTRAN()]], [[CHRTRANC()]], [[CONCAT()]], [[INLIST()]], [[LEFT()]], [[LEFTC()]], [[LEN()]], [[LENC()]], [[OCCURS()]], [[RAT()]], [[RAT_C()]], [[RIGHT()]], [[RIGHTC()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRLEN()]], [[STRSTR()]], [[STRTRAN()]], [[STUFF()]], [[STUFFC()]], [[SUBSTR()]] |
==Description== | ==Description== |
Latest revision as of 07:39, 15 September 2014
Contents
Purpose
Function to perform substring extraction (double byte character sets)
Syntax
SUBSTRC(<expC> | <memofield>, <expN1> [,<expN2>])
See Also
AT(), AT_C(), ATNEXT(), CHRTRAN(), CHRTRANC(), CONCAT(), INLIST(), LEFT(), LEFTC(), LEN(), LENC(), OCCURS(), RAT(), RAT_C(), RIGHT(), RIGHTC(), SET STRESCAPE, STR(), STREXTRACT(), STRLEN(), STRSTR(), STRTRAN(), STUFF(), STUFFC(), SUBSTR()
Description
The SUBSTRC() function extracts a substring from <expC> or <memofield> starting at position <expN1> of width <expN2>. If <expN1> is negative, the extraction starts from the right side of the string. If <expN2> is omitted, a substring will be extracted up to the end of <expC>. When used in conjunction with the AT_C() function, the SUBSTRC() function is very useful for extracting selected information from character strings.
Example
cDBSubString = substrc(cDBString, nStart, nWidth)