Difference between revisions of "TPARemove"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure TPARemove(var TPA: TPointArray; const Point: TPoint); </source> ==Availability== SCAR Divi 3.28 > Current * Before S...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{OpenAPI|TPA|TPARemove}} | ||
+ | |||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
Line 10: | Line 12: | ||
===Aliases=== | ===Aliases=== | ||
− | *TPARemovePoint(SCAR Divi 3.26 > | + | *TPARemovePoint (SCAR Divi 3.26 > 3.35) |
==Description== | ==Description== | ||
− | Removes the | + | Removes the first occurrence of a given [[TPoint]] '''Point''' in a [[TPointArray]] '''TPA'''. An extended function with additional functionality is available as [[TPARemoveEx]]. |
==Example== | ==Example== | ||
Line 35: | Line 37: | ||
*[[TPAUnique]] | *[[TPAUnique]] | ||
*[[TPAAppend]] | *[[TPAAppend]] | ||
+ | *[[TPAInsert]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:TPA Functions]] | [[Category:TPA Functions]] | ||
[[Category:Array Functions]] | [[Category:Array Functions]] |
Latest revision as of 11:45, 28 August 2013
Additional and more up-to-date information can be found in the OpenAPI Documentation for TPARemove
Definition
procedure TPARemove(var TPA: TPointArray; const Point: TPoint);
Availability
SCAR Divi 3.28 > Current
- Before SCAR Divi 3.28, TPARemove performed the function of TPADelete.
Aliases
- TPARemovePoint (SCAR Divi 3.26 > 3.35)
Description
Removes the first occurrence of a given TPoint Point in a TPointArray TPA. An extended function with additional functionality is available as TPARemoveEx.
Example
var TPA: TPointArray; begin TPA := [Point(0, 0), Point(2, 2), Point(4, 5), Point(2, 2), Point(5, 10)]; TPARemove(TPA, Point(2, 2)); WriteLn(TPAToStr(TPA)); end.
Output:
(0,0);(2,2);(4,5);(5,10)