String Intrinsic Functions - PositionIn Method
Find the position of this variable in a string
Member of String Intrinsic Functions (PRIM_LIBI.ICommonStringIntrinsics)
Parameters
Name |
Type |
Data Type |
Description |
Result |
*Result (Optional) |
Integer |
Resulting position |
String |
*Input |
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" )