[Overview][Types][Classes][Procedures and functions] Reference for unit 'contnrs' (#fcl)

TFPObjectList.Extract

Extract an object from the list

Declaration

Source position: contnrs.pp line 51

public function TFPObjectList.Extract(

  Item: TObject

):TObject;

Arguments

Item

  

The object to extract

Function result

The extracted object, or Nilif none was extracted.

Description

Extractremoves Itemfrom the list, if it is present in the list. It returns Itemif it was found, Nilif item was not present in the list.

Note that the object is not freed, and that only the first found object is removed from the list.

Errors

None.

See also

TFPObjectList.Pack

  

Remove all Nilreferences from the list

TFPObjectList.Clear

  

Clear all elements in the list.

TFPObjectList.Remove

  

Remove an item from the list.

TFPObjectList.Delete

  

Delete an element from the list.