System.Classes.TStrings.GetText
Delphi
function GetText: PChar; virtual;
C++
virtual System::WideChar * __fastcall GetText();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStrings |
Description
Allocates a text buffer and fills it with the value of the Text property.
Call GetText to obtain a dynamically allocated character buffer containing all of the strings in the list. Individual strings are separated by a carriage return (#13
) on the OS X operating system, or by a carriage return and a line feed (#13#10
) on Windows operating systems. The caller is responsible for freeing the returned value using the StrDispose procedure.