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

TStrings.Clear

Removes all strings and associated objects from the list.

Declaration

Source position: classesh.inc line 485

public procedure TStrings.Clear; virtual; abstract;

Description

Clearwill remove all strings and their associated objects from the list. After a call to clear, TStrings.Countis zero.

Since it is an abstract method, TStringsitself does not implement Clear. Descendent classes such as TStringListimplement this method.

See also

TStrings.Items

TStrings.Delete

  

Delete a string from the list.

TStrings.Count

  

Number of strings in the list.