String.Last

Parent Previous Next

String.Last.

If the passed value is found in the string - searching from behind and using case sensitive comparing, then it returns the position as an index (0 based) of the first character, otherwise it returns -1.


Syntax.


 Last(String value) : Integer

 


Example:


 Integer i;

 i := ("01234567890123456789").Last("789"); //Now i == 17;

 i := ("0123").Last("01234");  //Now i == -1;