TEAPosEx

From SCAR Divi Manual
Jump to: navigation, search

Definition

function TEAPosEx(const TEA: TExtArray; const Ext: Extended; const From: Integer): Integer;

Availability

SCAR Divi 3.34 > Current

Description

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

Example

begin
  WriteLn(TEAPosEx([1, 2, 3.5, 4.5, 3.5], 3.5, 3));
  WriteLn(TEAPosEx([1, 2, 3.5], 4.5, 3));
end.

Output:

4
-1

See Also