TIARemove

From SCAR Divi Manual
Revision as of 19:13, 24 October 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure TIARemove(var TIA: TIntArray; const Int: Integer); </source> ==Availability== SCAR Divi 3.28 > Current ==Description...")
(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