Difference between revisions of "TPAToStr"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function TPAToStr(const TPA: TPointArray): AnsiString; </source> ==Availability== SCAR Divi 3.25 > Current ==Description== Con...")
(No difference)

Revision as of 10:48, 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)

See Also