TIARemove

From SCAR Divi Manual
Jump to: navigation, search

Definition

procedure TIARemove(var TIA: TIntArray; const Int: Integer);

Availability

SCAR Divi 3.28 > Current

Description

Removes the last occurrence of a given integer Int in a TIntArray TIA. An extended function with additional functionality is available as TIARemoveEx.

Example

var
  TIA: TIntArray;

begin
  TIA := [1, 5, 4, 8, 7, 4, 6];
  TIARemove(TIA, 4);
  WriteLn(TIAToStr(TIA));
end.

Output:

1,5,4,8,7,6

See Also