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

TObjectArray.Remove

Removes the association with the specified TItem class instance.

Declaration

Source position: objectlists.pas line 79

public function TObjectArray.Remove(

  Item: TItem

):Integer;

Arguments

Item

  

TItem class instance to locate in the List.

Function result

Ordinal position for the association removed in the method.

Description

Remove is an Integer function used to delete the item/object association with the specified TItem class instance. The return value contains the result returned from IndexOf. The return value is -1 when Item is not found in List. When Item exists in List, the Delete method is called to remove the association at the position in the return value.

See also

TObjectArray.List

  

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

TObjectArray.IndexOf

  

Gets the ordinal position in List where the specified TItem instance is stored.

TObjectArray.Delete

  

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


Version 4.0 Generated 2025-05-03 Home