10 6 37 LastPositionIn

LANSA Technical

10.6.37 LastPositionIn

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

LastPositionIn is case sensitive.

Input Parameters

String - String to be searched in.

Example

In this example, if #String contained M, the result would be 13:

#LastPosition := #String.LastPositionIn( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' )

 

Ý 10.6 Alphanumeric/String Intrinsic Functions