CopyTIAEx

From SCAR Divi Manual
Jump to: navigation, search

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