TStringList.GetText

From Soldat Community Wiki
Revision as of 14:23, 24 August 2013 by Mighty (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
function GetText(): PChar
 Result: contents of a stringlist as PChar

Description

Function returns the contents as a PChar; series of strings, separated by an end-of-line marker.

Example

var
  s: TStringList;

begin
  s := File.CreateStringList();
  s.Append('a');
  s.Append('b');
  
  WriteLn(s.GetText);
  {
  a
  b
  
  }
  
  s.Free;
end.