Difference between revisions of "CopyTIAEx"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function CopyTIAEx(const TIA: TIntArray; const Index, Count: Integer): TIntArray; </source> ==Availability== SCAR Divi 3.28 ...")
 
 
Line 5: Line 5:
  
 
==Availability==
 
==Availability==
SCAR Divi 3.28 > Current
+
SCAR Divi 3.38 > Current
  
 
==Description==
 
==Description==

Latest revision as of 16:58, 12 December 2012

Definition

function CopyTIAEx(const TIA: TIntArray; const Index, Count: Integer): TIntArray;

Availability

SCAR Divi 3.38 > Current

Description

Creates a new TIntArray with a copy of every element in the given array TIA starting at Index with a length of Count.

Example

var
  TIA, TIA2: TIntArray;

begin
  TIA := [2, 9, 7, 4, 5, 3];
  TIA2 := CopyTIAEx(TIA, 2, 2);
  WriteLn(TIAToStr(TIA2));
end.

Output:

7,4

See Also