TIARemoveEx

From SCAR Divi Manual
Revision as of 16:43, 23 April 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure TIARemoveEx(var TIA: TIntArray; const Int: Integer; const All: Boolean);

Availability

SCAR Divi 3.28 > Current

Description

Removes the last occurrence of a given integer Int in a TIntArray TIA if All is false. If All is true, it will remove every occurrences of Int.

Example

var
  TIA: TIntArray;

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

Output:

1,5,8,7,6

See Also