help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TFPHashObjectList.Remove

Remove first occurrence of a object instance

Declaration

Source position: contnrs.pp line 307

public function TFPHashObjectList.Remove(

  AObject: TObject

):Integer;

Arguments

AObject

  

Object instance to remove from the list.

Function result

Position of object instance which was removed

Description

Remove removes the first occurence of the object instance Item in the list, if it is present. The return value is the location of the removed object instance, or -1 if no object instance was removed.

If OwnsObjects is True, then the object itself is also freed from memory.

See also

TFPHashObjectList.Delete

  

Delete an object from the list.

TFPHashObjectList.Clear

  

Clear the list

TFPHashObjectList.Extract

  

Extract a object instance from the list

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505