10 6 43 OccurencesOf

LANSA Technical

10.6.43 OccurencesOf

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

OccurrencesOf is case sensitive

Input Parameters

String - String to be searched for

StartPosition - Character to start searching from

Example

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

#Occurences := #String.OccurencesOf( 'ABC' )

 

Ý 10.6 Alphanumeric/String Intrinsic Functions