Array.Last

Parent Previous Next

Array.Last.

Returns the index position (0-based) of the last occurrence of the item, if it is in the array. Otherwise returns -1.


Syntax.


 First(Type item) : Integer

 


Arguments:


Example:


 Integer pos, arr[] := [0, 2, 0];

 pos := arr[].Last(0); //Now pos == 2;