Difference between revisions of "STUFFC()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Function to perform character replacement (double byte character sets) ==Syntax== STUFFC(<expC1>, <expN1>, <expN2>, <expC2>) ==See Also== AT(), AT_C(), [...") |
Yvonne.milne (Talk | contribs) |
||
Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | cDBreplaced = | + | cDBreplaced = stuffc(cDBString, nStart, nReplaceChars, cDBReplaceWith) |
</code> | </code> | ||
Revision as of 07:33, 15 September 2014
Contents
Purpose
Function to perform character replacement (double byte character sets)
Syntax
STUFFC(<expC1>, <expN1>, <expN2>, <expC2>)
See Also
AT(), AT_C(), ATNEXT(), CHRTRAN(), CHRTRANC(), INLIST(), LEFT(), LEFTC(), LEN(), LENC(), LPAD(), OCCURS(), RAT(), RAT_C(), RIGHT(), RIGHTC(), RPAD(), SET STRESCAPE, STR(), STREXTRACT(), STRLEN(), STRTRAN(), STUFF(), SUBSTR(), SUBSTRC()
Description
The STUFFC() function returns a character string which is the result of replacing a string in <expC1> with <expC2>. The starting position for the replacement is <expN1>, and the number of characters to replace is <expN2>. It can also be used to remove text from a string.
Example
cDBreplaced = stuffc(cDBString, nStart, nReplaceChars, cDBReplaceWith)