Difference between revisions of "TIAMinEx"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TIAMinEx(const TIA: TIntArray; out Index: Integer): Integer; </source> ==Availability== SCAR Divi 3.34 > Current ==De...")
 
Line 27: Line 27:
 
*[[TIAMin]]
 
*[[TIAMin]]
 
*[[TIAMaxEx]]
 
*[[TIAMaxEx]]
 +
*[[TIARange]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:TIA Functions]]
 
[[Category:TIA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]

Revision as of 17:04, 23 April 2012

Definition

function TIAMinEx(const TIA: TIntArray; out Index: Integer): Integer;

Availability

SCAR Divi 3.34 > Current

Description

Returns the smallest number in a given TIA and the first index where it was found in Idx. The function throws an exception if the size of the given TIA is 0.

Example

var
  Idx: Integer;
begin
  WriteLn(TIAMinEx([2, 4, 3, 6, 8, 5, 1, 2], Idx));
  WriteLn('Index: ' + IntToStr(Idx));
end.

Output:

1
Index: 6

See Also