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



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

TObjectList.OwnsObjects

Should the list free elements when they are removed.

Declaration

Source position: contnrs.pp line 90

public property TObjectList.OwnsObjects: Boolean
  read FFreeObjects
  write FFreeObjects;

Description

OwnsObjects determines whether the objects in the list should be freed when they are removed (not extracted) from the list, or when the list is cleared. If the property is True then they are freed. If the property is False the elements are not freed.

The value is usually set in the constructor, and is seldom changed during the lifetime of the list. It defaults to True.

See also

TObjectList.Create

  

Create a new object list.

TObjectList.Delete

TObjectList.Remove

  

Remove (and possibly free) an element from the list.

TObjectList.Clear

Notes

 No notes exist for this page yet. 





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