RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStrings Methods

The methods of the TStrings class are listed here.

 
Name 
Description 
 
Compares two strings. 
 
Reads and writes the Strings property as if it were published. 
 
This is the overview for the Error method overload. 
 
Returns the name portion of a string that is a name value pair. 
 
Get 
Returns a string given its index. 
 
Returns the currently allocated size of the list of strings. 
 
Returns the number of strings in the list 
 
Returns the object associated with the string at a specified index. 
 
Returns the value of the Text property. 
 
Put 
Changes the value of the string with a specified index. 
 
Changes the object associated with the string at a specified index. 
 
Changes the amount of memory allocated to hold strings in the list. 
 
Sets the Text property. 
 
Performs internal adjustments before or after a series of updates. 
 
Name 
Description 
 
Add 
Adds a string at the end of the list. 
 
Adds a string to the list, and associates an object with the string. 
 
Adds a group of strings to the list. 
 
Adds a string to the list. 
 
Sets the strings in the list, and possibly associated objects, from a source object. 
 
Enables the TStrings object to track when the list of strings is changing. 
 
Introduces an abstract (Delphi) or pure virtual (C++) method to empty the list and any associated objects. 
 
Introduces an abstract (Delphi) or pure virtual (C++) method to delete a specified string from the list. 
 
Enables the TStrings object to keep track of when the list of strings has finished changing. 
 
Compares the list of strings to the list from another TStrings object and returns true if the two lists match. 
 
Swaps the position of two strings in the list. 
 
Returns a TStrings enumerator. 
 
Allocates a text buffer and fills it with the value of the Text property. 
 
Returns the position of a string in the list. 
 
Returns the position of the first name-value pair with the specified name. 
 
Returns the index of the first string in the list associated with a given object. 
 
Introduces abstract (Delphi) or pure virtual (C++) method to insert a string at a specified position. 
 
Inserts a string into the list at the specified position, and associates it with an object. 
 
Fills the list with the lines of text in a specified file. 
 
Fills the list with lines of text read from a stream. 
 
Move 
Changes the position of a string in the list. 
 
Saves the strings in the list to the specified file. 
 
Writes the value of the Text property to a stream object. 
 
Sets the Text property. 
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!