Sign in Join
FPDoc Onlineexperiment

TFPGObjectList.Extract function

Member of TFPGObjectListpublicIn unit fgl

Extract an item from the list.

Declaration

pascal
function Extract(const Item: T): T

Arguments

Item

The extracted item.

Function result

The actually removed item, or Nil.

Description

Extract removes Item from the list and returns the removed item, or Nil if it was not found.

The extracted object will not be destroyed even if the list owns the objects.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.