Difference between revisions of "TIARemoveEx"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure TIARemoveEx(var TIA: TIntArray; const Int: Integer; const All: Boolean); </source> ==Availability== SCAR Divi 3.28 > ...") |
(No difference)
|
Revision as of 19:15, 24 October 2011
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