Difference between revisions of "TPAToStr"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function TPAToStr(const TPA: TPointArray): AnsiString; </source> ==Availability== SCAR Divi 3.25 > Current ==Description== Con...") |
|||
Line 30: | Line 30: | ||
[[Category:Conversion Functions]] | [[Category:Conversion Functions]] | ||
[[Category:TPA Functions]] | [[Category:TPA Functions]] | ||
+ | [[Category:Data Functions]] |
Revision as of 10:50, 1 July 2011
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)