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

TObjectArray.Delete

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

Declaration

Source position: objectlists.pas line 70

public procedure TObjectArray.Delete(

  Index: Integer

);

Arguments

Index

  

Ordinal position in List for the association deleted in the method.

Description

Delete is a procedure used to deletes an item/object association stored at the specified position in the List. When List has a length greater than the value in Index+1, the Move routine in the System.pp unit is called to relocate any associations that occur after the position requested.

Delete decrements the value in Count. The Shrink method is called when Capacity is larger than four (4) times the new value in Count.

Use Remove to delete an association with a specific TItem class instance.

See also

TObjectArray.List

  

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

TObjectArray.Capacity

  

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

TObjectArray.Count

  

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

TObjectArray.Shrink

  

Decreases the Capacity and allocated storage for the class instance.

TObjectArray.Remove

  

Removes the association with the specified TItem class instance.


Version 4.0 Generated 2025-05-03 Home