10 6 45 PositionOf

LANSA Technical

10.6.45 PositionOf

PositionOf returns the character position of the first occurrence in the supplied String parameter of the String, after the StartPosition.

PositionOf is case sensitive

Input Parameters

String - String to be searched

StartPosition - Character to start searching from

Example

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

#Position := #String.PositionOf( 'EAB' )

 

Ý 10.6 Alphanumeric/String Intrinsic Functions