Difference between revisions of "STRSTR()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
==Class== | ==Class== | ||
− | + | String Data | |
==Purpose== | ==Purpose== | ||
− | + | Function to perform substring extraction | |
==Syntax== | ==Syntax== | ||
− | + | STRSTR(<expC1>, <expC2>) | |
==See Also== | ==See Also== | ||
− | + | [[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] | |
==Description== | ==Description== | ||
− | + | The STRSTR() function extracts a substring from <expC1> starting from <expC2> to the end of <expC1>. If <expC2> is not found, an empty string is returned. | |
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | m_usrname = "GTW, Gary T West" | |
+ | ? substr(m->m_usrname,at(",",m->m_usrname)+1) | ||
+ | Gary T West | ||
</code> | </code> | ||
− | |||
+ | ==Products== | ||
+ | Recital Server, Recital | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:String Data]] | ||
+ | [[Category:String Data Functions]] |
Revision as of 13:59, 13 October 2009
Class
String Data
Purpose
Function to perform substring extraction
Syntax
STRSTR(<expC1>, <expC2>)
See Also
AT(), ATNEXT(), INLIST(), LEFT(), OCCURS(), RAT(), RIGHT(), STR(), STREXTRACT(), STRTRAN(), STUFF(), SUBSTR()
Description
The STRSTR() function extracts a substring from <expC1> starting from <expC2> to the end of <expC1>. If <expC2> is not found, an empty string is returned.
Example
m_usrname = "GTW, Gary T West" ? substr(m->m_usrname,at(",",m->m_usrname)+1) Gary T West
Products
Recital Server, Recital