TEAPos

From SCAR Divi Manual
Jump to: navigation, search

Definition

function TEAPos(const TEA: TExtArray; const Ext: Extended): Extended;

Availability

SCAR Divi 3.34 > Current

Description

Finds a given extended value in the given TExtArray TEA and returns the position of the extended in the array. The function returns -1 if the extended is not found. An extended function with additional functionality is available as TEAPosEx.

Example

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

Output:

2
-1

See Also