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...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | function TPAToStr(const TPA: TPointArray): | + | function TPAToStr(const TPA: TPointArray): string; |
</source> | </source> | ||
Line 8: | Line 8: | ||
==Description== | ==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]]. | + | 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== | ==Example== | ||
Line 30: | Line 30: | ||
[[Category:Conversion Functions]] | [[Category:Conversion Functions]] | ||
[[Category:TPA Functions]] | [[Category:TPA Functions]] | ||
+ | [[Category:Data Functions]] |
Latest revision as of 16:59, 19 April 2012
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)