LastPos

From SCAR Divi Manual
Revision as of 08:34, 2 July 2011 by Freddy (talk | contribs)
Jump to: navigation, search

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