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 > ...") |
|||
Line 30: | Line 30: | ||
*[[TIAUnique]] | *[[TIAUnique]] | ||
*[[TIAAppend]] | *[[TIAAppend]] | ||
+ | *[[TIAInsert]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:TIA Functions]] | [[Category:TIA Functions]] | ||
[[Category:Array Functions]] | [[Category:Array Functions]] |
Latest revision as of 16:43, 23 April 2012
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