TIAPosEx

From SCAR Divi Manual
Revision as of 10:41, 24 October 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function TIAPosEx(const TIA: TIntArray; const Int, From: Integer): Integer; </source> ==Availability== SCAR Divi 3.28 > Current...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function TIAPosEx(const TIA: TIntArray; const Int, From: Integer): Integer;

Availability

SCAR Divi 3.28 > Current

Description

Finds a given integer value in the given TIntArray TIA starting at the index given by From and returns the position of the integer in the array. The function returns -1 if the integer is not found.

Example

begin
  WriteLn(TIAPosEx([1, 2, 3, 4, 3], 3, 3));
  WriteLn(TIAPosEx([1, 2, 3], 4, 3));
end.

Output:

4
-1

See Also