Difference between revisions of "TEAPos"
From SCAR Divi Manual
(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...") |
(No difference)
|
Revision as of 15:06, 22 May 2012
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