Unicode Intrinsic Functions - PositionIn Method

Find the position of this variable in a string

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)


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


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


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

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020