TPAToStr

From SCAR Divi Manual
Revision as of 10:48, 1 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function TPAToStr(const TPA: TPointArray): AnsiString; </source> ==Availability== SCAR Divi 3.25 > Current ==Description== Con...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function TPAToStr(const TPA: TPointArray): AnsiString;

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