LastPos

From SCAR Divi Manual
Jump to: navigation, search

Definition

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

Availability

SCAR Divi 3.10 > Current

Description

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

Example

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

Output:

6

See Also