String Intrinsic Functions - LastPositionOf Method

Find the last position of the value in this variable

Member of String Intrinsic Functions (PRIM_LIBI.ICommonStringIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)IntegerResulting position
String*InputStringString to be searched for

Details

LastPositionOf returns the last position of a string in the subject string. If the string is not found, the result will be 0.
 
LastPositionOf is case sensitive.

Example

In this example, if #String contained "ABCDEFGHIJKLMNOPQRSTUVWXYZ", the result would be 13
#LastPosition := #String.LastPositionOf( "M" )

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2