help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TStrings.Delete

Delete a string from the list.

Declaration

Source position: classesh.inc line 494

public procedure TStrings.Delete(

  Index: Integer

); virtual; abstract;

Description

Delete deletes the string at position Index from the list. The associated object is also removed from the list, but not destroyed. Index is zero-based, and should be in the range 0 to Count-1.

Since it is an abstract method, TStrings itself does not implement Delete. Descendent classes such as TStringList implement this method.

Errors

If Index is not in the allowed range, an EStringListError is raised.

See also

TStrings.Insert

  

Insert a string in the list.

TStrings.Items

TStrings.Clear

  

Removes all strings and associated objects from the list.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505