CopyTIAEx

From SCAR Divi Manual
Revision as of 16:57, 12 December 2012 by Freddy (talk | contribs) (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 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

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

Availability

SCAR Divi 3.28 > 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