Compatible Unicode Intrinsic Functions - PositionIn Method

Find the position of this variable in a string

Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)

Parameters

Name Type Data Type Description
Result *Result (Optional) Integer Resulting position
String *Input Unicode String String to be searched
StartPosition *Input (Optional) Integer Position at which to start searching

Details

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

Example

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