Difference between revisions of "TPointArray"

From SCAR Divi Manual
Jump to: navigation, search
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
TPoint = array of TPoint;
+
TPointArray = array of TPoint;
 
</source>
 
</source>
  
Line 8: Line 8:
  
 
==Description==
 
==Description==
A dynamic array type based on the [[TPoint]] type. It holds a set of coordinates of undefined size.
+
A dynamic array type based on the [[TPoint]] type.
  
 
==Example==
 
==Example==

Revision as of 01:35, 21 October 2011

Definition

TPointArray = array of TPoint;

Availability

SCAR Divi 3.00 > Current

Description

A dynamic array type based on the TPoint type.

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