Difference between revisions of "TPAToStr"
From SCAR Divi Manual
(→Description) |
|||
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 [[AnsiString|string]] formatted as (p1.X,p1.Y);(p2.X,p2.Y);...;(pn.X,pn.Y). You can reverse this process with [[StrToTPA]]. |
==Example== | ==Example== |
Revision as of 10:51, 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)