Difference between revisions of "TIARemove"

From SCAR Divi Manual
Jump to: navigation, search
(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...")
 
 
Line 30: Line 30:
 
*[[TIAUnique]]
 
*[[TIAUnique]]
 
*[[TPAAppend]]
 
*[[TPAAppend]]
 +
*[[TPAInsert]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:TIA Functions]]
 
[[Category:TIA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]

Latest revision as of 17:42, 23 April 2012

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