System.Classes.TList.Clear

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Clear; virtual;

C++

virtual void __fastcall Clear();

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TList

Description

Deletes all items from the list.

Call Clear to empty the Items array and set the Count to 0. Clear also frees the memory used to store the Items array and sets the Capacity to 0.

See Also