Difference between revisions of "LastPos"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function LastPos(const SubStr, S: AnsiString): Integer; </source> ==Availability== SCAR Divi 3.10 > Current ==Description== Re...")
 
Line 21: Line 21:
  
 
==See Also==
 
==See Also==
*[[LastPos]]
+
*[[LastPosEx]]
 
*[[Pos]]
 
*[[Pos]]
 
*[[Copy]]
 
*[[Copy]]

Revision as of 09:34, 2 July 2011

Definition

function LastPos(const SubStr, S: AnsiString): Integer;

Availability

SCAR Divi 3.10 > Current

Description

Returns the position of the last occurrence of a string SubStr in another string S.

Example

begin
  WriteLn(LastPos('a', 'alol abc'));
end.

Output:

6

See Also