Unicode Intrinsic Functions - PositionOf Method

Find the position of a string in this variable

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)IntegerResulting position
String*InputUnicode StringString to be searched for
StartPosition*Input (Optional)IntegerPosition at which to start searching

Details

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

Example

In this example, if #String contained "ABCDEABCDEABCDE", the result would be 5
#Position := #String.PositionOf( "EAB" )

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020