Difference between revisions of "TIARange"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure TIARange(const TIA: TIntArray; out Lo, Hi: Integer); </source> ==Availability== SCAR Divi 3.28 > Current ==Descripti...")
 
 
Line 27: Line 27:
  
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:TPA Functions]]
+
[[Category:TIA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]

Latest revision as of 11:04, 21 October 2011

Definition

procedure TIARange(const TIA: TIntArray; out Lo, Hi: Integer);

Availability

SCAR Divi 3.28 > Current

Description

This function determines the lowest and highest values in the given TIntArray TIA and returns them in Lo and Hi.

Example

var
  Lo, Hi: Integer;

begin
  TIARange([1, 2, 3], Lo, Hi);
  WriteLn(Lo);
  WriteLn(Hi);
end.

Output:

1
3