Compatible Unicode Intrinsic Functions - PositionOf Method
Find the position of a string in this variable
Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)
Name |
Type |
Data Type |
Description |
Result |
*Result (Optional) |
Integer |
Resulting position |
String |
*Input |
Unicode String |
String to be searched for |
StartPosition |
*Input (Optional) |
Integer |
Position at which to start searching |
PositionOf returns the character position of the first occurrence in the supplied String parameter of the String, after the StartPosition.
PositionOf is case sensitive.
In this example, if #String contained "ABCDEABCDEABCDE", the result would be 5
#Position := #String.PositionOf( "EAB" )
All Component Classes
Technical Reference