Difference between revisions of "TPointArray"

From SCAR Divi Manual
Jump to: navigation, search
(Example)
Line 19: 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==

Revision as of 01:36, 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(TPAToStr(TPA));
end.

Output:

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

See Also