RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStrings.Delete Method

Introduces an abstract (Delphi) or pure virtual (C++) method to delete a specified string from the list.

Pascal
procedure Delete(Index: Integer); virtual; abstract;
C++
virtual __fastcall Delete(int Index) = 0;

Descendants of TStrings implement a Delete method to remove a specified string from the list. If an object is associated with the string, the reference to the object is removed as well. Index gives the position of the string, where 0 is the first string, 1 is the second string, and so on. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!