Difference between revisions of "TPointArray"

From SCAR Divi Manual
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
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>
 +
 +
==Availability==
 +
SCAR Divi 3.00 > Current
  
 
==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. There are [[:Category:TPA_Functions|many functions]] available to process these arrays.
  
 
==Example==
 
==Example==
Line 16: Line 19:
 
   TPA[0] := Point(5, 6);
 
   TPA[0] := Point(5, 6);
 
   TPA[1] := Point(7, -1);
 
   TPA[1] := Point(7, -1);
   WriteLn('TPointArray: ' + TPAToStr(TPA));
+
   WriteLn(TPAToStr(TPA));
 
end.
 
end.
 
</source>
 
</source>
  
 
Output:
 
Output:
  TPointArray: (5,6);(7,-1)
+
  (5,6);(7,-1)
  
 
==See Also==
 
==See Also==
 
*[[TPoint]]
 
*[[TPoint]]
 +
*[[T2DPointArray]]
 
*[[TPAToStr]]
 
*[[TPAToStr]]
 
*[[StrToTPA]]
 
*[[StrToTPA]]

Latest revision as of 19:00, 10 December 2012

Definition

TPointArray = array of TPoint;

Availability

SCAR Divi 3.00 > Current

Description

A dynamic array type based on the TPoint type. There are many functions available to process these arrays.

Example

var
  TPA: TPointArray;

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

Output:

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

See Also