Difference between revisions of "TPADelete"

From SCAR Divi Manual
Jump to: navigation, search
(Description)
Line 29: Line 29:
 
*[[TPARemovePointEx]]
 
*[[TPARemovePointEx]]
 
*[[TPARemoveDupl]]
 
*[[TPARemoveDupl]]
 +
*[[TPAInsert]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:TPA Functions]]
 
[[Category:TPA Functions]]
 
[[Category:Array Functions]]
 
[[Category:Array Functions]]

Revision as of 00:43, 21 October 2011

Definition

procedure TPARemove(var TPA: TPointArray; const Index: Integer);

Availability

SCAR Divi 3.26 > Current

Description

Removes the coordinate at a given position Index in a given TPointArray TPA. If the index is outside of the array bounds, nothing happens.

Example

var
  TPA: TPointArray;

begin
  TPA := [Point(0, 0), Point(2, 2), Point(5, 10)];
  TPARemove(TPA, 1);
  WriteLn('TPointArray: ' + TPAToStr(TPA));
end.

Output:

TPointArray: (0,0);(5,10)

See Also