Sign in Join
FPDoc Onlineexperiment

TStrings.Delete procedure

Member of TStringspublicIn unit Classes

Delete a string from the list.

Declaration

pascal
procedure 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. Descendant classes such as TStringList implement this method.

Errors

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.