10 6 42 OccurencesIn

LANSA Technical

10.6.42 OccurencesIn

OccurencesIn returns the number of times the string can be found in the string supplied in the String parameter, starting from the character specified in the Startposition parameter.

OccurrencesIn is case sensitive

Input Parameters

String - String to be searched

StartPosition - Character to start searching from

Example

In this example, if #String contained 'ABC', the result would be 3:

#Occurences := #String.OccurencesIn( 'ABCDEABCDEABCDE' )

 

Ý 10.6 Alphanumeric/String Intrinsic Functions