RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStrings.SetText Method

Sets the Text property.

Pascal
procedure SetText(Text: PChar); virtual;
C++
virtual __fastcall SetText(const char * Text);

Call SetText to replace the list with the strings specified by the Text parameter. SetText adds strings one at a time to the list, using the carriage returns or linefeed characters in Text as delimiters indicating when to add a new string. 

 

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