Difference between revisions of "TPointArray"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> TPoint = array of TPoint; </source> ==Description== A dynamic array type based on the TPoint type. It holds a set of coordi...")
 
Line 30: Line 30:
 
[[Category:Types]]
 
[[Category:Types]]
 
[[Category:Array Types]]
 
[[Category:Array Types]]
 +
[[Category:Dynamic Array Types]]

Revision as of 23:40, 26 June 2011

Definition

TPoint = array of TPoint;

Description

A dynamic array type based on the TPoint type. It holds a set of coordinates of undefined size.

Example

var
  TPA: TPointArray;

begin
  SetLength(TPA, 2);
  TPA[0] := Point(5, 6);
  TPA[1] := Point(7, -1);
  WriteLn('TPointArray: ' + TPAToStr(TPA));
end.

Output:

TPointArray: (5,6);(7,-1)

See Also