Difference between revisions of "STUFF()"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) (→Class) |
Helengeorge (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Function to perform character replacement | Function to perform character replacement | ||
Line 27: | Line 25: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital, Recital Server |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:String Data]] | [[Category:String Data]] | ||
[[Category:String Data Functions]] | [[Category:String Data Functions]] |
Revision as of 16:33, 8 December 2009
Purpose
Function to perform character replacement
Syntax
STUFF(<expC1>, <expN1>, <expN2>, <expC2>)
See Also
AT(), ATNEXT(), INLIST(), LEFT(), LPAD(), OCCURS(), RAT(), RIGHT(), RPAD(), STR(), STREXTRACT(), STRTRAN(), SUBSTR()
Description
The STUFF() 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
? stuff("Life is as you take it",9,13, "grea") Life is great ? stuff("Friends are welcome",9,7, "") Friends come
Products
Recital, Recital Server