FillTIAEx

From SCAR Divi Manual
Revision as of 19:28, 10 December 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure FillTIAEx(var TIA: TIntArray; const Values: TIntArray); </source> ==Availability== SCAR Divi 3.38 > Current ==Des...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure FillTIAEx(var TIA: TIntArray; const Values: TIntArray);

Availability

SCAR Divi 3.38 > Current

Description

Fills a given TIntArray TIA with the values from the TIntArray Values. The functions alternates between the values in Values. When Values is empty, the function throws an exception.

Example

var
  TIA: TIntArray;
  
begin
  SetLength(TIA, 10);
  FillTIAEx(TIA, [0, 1]);
  WriteLn(TIAToStr(TIA));
end.

Output:

0,1,0,1,0,1,0,1,0,1

See Also