Difference between revisions of "OCCURS()"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
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.
 
  
 
==Syntax==
 
==Syntax==
 
OCCURS(<expC1>,<expC2>)
 
OCCURS(<expC1>,<expC2>)
 
  
 
==See Also==
 
==See Also==
 
[[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
 
[[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
 
  
 
==Description==
 
==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.
 
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==
 
==Example==
Line 20: Line 16:
 
         4
 
         4
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==

Revision as of 13:05, 11 December 2012

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", "Lianja DAO Classes for Java")
         4

Products

Lianja, Lianja Server