FillTIAEx

From SCAR Divi Manual
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