TIARemove

From SCAR Divi Manual
Revision as of 16:42, 23 April 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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