TPAToStr

From SCAR Divi Manual
Revision as of 16:59, 19 April 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function TPAToStr(const TPA: TPointArray): string;

Availability

SCAR Divi 3.25 > Current

Description

Converts a TPointArray TPA to a string formatted as (p1.X,p1.Y);(p2.X,p2.Y);...;(pn.X,pn.Y). You can reverse this process with StrToTPA.

Example

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

Output:

(0,0);(2,2);(5,10)

See Also