TIAAppend

From SCAR Divi Manual
Jump to: navigation, search

Definition

function TIAAppend(var TIA: TIntArray; const Int: Integer): Integer;

Availability

SCAR Divi 3.28 > Current

  • Before 3.34 the function had no result.

Description

Appends the given integer Int to end of the given TIntArray TIA. The index of the appended element is returned.

Example

var
  TIA: TIntArray;

begin
  TIA := [0, 1, 3];
  WriteLn(TIAAppend(TIA, 4));
  WriteLn(TIAToStr(TIA));
end.

Output:

3
0,1,3,4

See Also