Difference between revisions of "TPARemovePointEx"

From SCAR Divi Manual
Jump to: navigation, search
(Redirected page to TPARemoveEx)
 
Line 1: Line 1:
==Definition==
+
#REDIRECT [[TPARemoveEx]]
<source lang="scar" lines="false">
 
procedure TPARemovePointEx(var TPA: TPointArray; const Point: TPoint; const All: Boolean);
 
</source>
 
  
==Availability==
+
[[Category:Deprecated Functions]]
SCAR Divi 3.26 > Current
 
 
 
==Description==
 
Removes the last occurrence of a given [[TPoint]] '''Point''' in a [[TPointArray]] '''TPA''' if '''All''' is [[false]]. If '''All''' is [[true]], it will remove every occurrences of '''Point'''.
 
 
 
==Example==
 
<source lang="scar">
 
var
 
  TPA: TPointArray;
 
 
 
begin
 
  TPA := [Point(0, 0), Point(2, 2), Point(4, 5), Point(2, 2), Point(5, 10)];
 
  TPARemovePointEx(TPA, Point(2, 2), True);
 
  WriteLn('TPointArray: ' + TPAToStr(TPA));
 
end.
 
</source>
 
 
 
Output:
 
TPointArray: (0,0);(4,5);(5,10)
 
 
 
==See Also==
 
*[[TPARemovePoint]]
 
*[[TPADelete]]
 
*[[TPARemoveDupl]]
 
*[[TPAAppend]]
 
 
 
[[Category:Functions]]
 
[[Category:TPA Functions]]
 
[[Category:Array Functions]]
 

Latest revision as of 11:25, 24 October 2011

Redirect to: