[Overview][Types][Classes][Index] Reference for unit 'ObjectLists' (#lazutils)

TObjectArray.Clear

Removes all item/object associations stored in the List.

Declaration

Source position: objectlists.pas line 69

public procedure TObjectArray.Clear; virtual;

Description

Clear is a procedure used to remove all item/object associations stored in the List. Clear sets the values in Count and Capacity to zero (0), and calls ReallocMem to set the allocated memory size in List to zero (0).

Use Delete or Remove to delete a single association by its position or item content.

See also

TObjectArray.Count

  

Number of item/object associations currently stored in the List.

TObjectArray.Capacity

  

Specifies the number of associations that can be stored in the List.

TObjectArray.List

  

Provides access to the list which implements the storage for the item/object associations in the class instance.

TObjectArray.Delete

  

Deletes an item/object association stored at the specified position in the List.

TObjectArray.Remove

  

Removes the association with the specified TItem class instance.


Version 4.0 Generated 2025-05-03 Home