Sign in Join
FPDoc Onlineexperiment

TFPGObjectList.FreeObjects property

Member of TFPGObjectListpublicIn unit fgl

Does the list own the objects or not?

Declaration

pascal
property FreeObjects: Boolean read FFreeObjects write FFreeObjects;

Description

FreeObjects indicates whether the list owns the objects or not. If set to True, freeing or clearing the list will remove all objects from memory by calling the destructor. Deleting or removing an item from the list will also dispose of the element.

The initial value for this property is set in the constructor and is True by default.

See also

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