Difference between revisions of "FillTIAEx"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 19:28, 10 December 2012

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