Difference between revisions of "OCCURS()"
From Recital Documentation Wiki
		
		
		
| Helengeorge  (Talk | contribs)  (→Class) | Yvonnemilne  (Talk | contribs)  | ||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| ==Purpose== | ==Purpose== | ||
| Function to return the number of times a specified character expression occurs within another specified character expression. | Function to return the number of times a specified character expression occurs within another specified character expression. | ||
| Line 10: | Line 8: | ||
| ==See Also== | ==See Also== | ||
| − | [[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[RAT()]], [[RIGHT()]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] | + | [[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] | 
| Line 25: | Line 23: | ||
| ==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]] | ||
Latest revision as of 12:05, 21 July 2010
Purpose
Function to return the number of times a specified character expression occurs within another specified character expression.
Syntax
OCCURS(<expC1>,<expC2>)
See Also
AT(), ATNEXT(), INLIST(), LEFT(), RAT(), RIGHT(), SET STRESCAPE, STR(), STREXTRACT(), STRTRAN(), STUFF(), SUBSTR()
Description
The OCCURS() function returns the number of times the character expression <expC1> is found in character expression <expC2>. A value of zero is returned if <expC1> does not exist in <expC2>. The character matching is case sensitive.
Example
? occurs("a", "Recital DAO Classes for Java") 4
Products
Recital, Recital Server
