Difference between revisions of "TEAPos"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
function TEAPos(const TEA: TExtArray; const Int: Extended): Extended;
+
function TEAPos(const TEA: TExtArray; const Ext: Extended): Extended;
 
</source>
 
</source>
  

Latest revision as of 15:07, 22 May 2012

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