TEAPos

From SCAR Divi Manual
Revision as of 15:06, 22 May 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function TEAPos(const TEA: TExtArray; const Int: Extended): Extended; </source> ==Availability== SCAR Divi 3.34 > Current ==De...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function TEAPos(const TEA: TExtArray; const Int: 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