RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStrings.GetText Method

Allocates a text buffer and fills it with the value of the Text property.

Pascal
function GetText: PChar; virtual;
C++
virtual __fastcall const char * GetText();

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 and (on Windows) line feed. The caller is responsible for freeing the returned value using the StrDispose procedure. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!