Sign in Join
FPDoc Onlineexperiment

TStringList.OwnsObjects property

Member of TStringListpublicIn unit Classes

Determines whether the stringlist owns it's objects or not.

Declaration

pascal
property OwnsObjects: Boolean read FOwnsObjects write FOwnsObjects;

Description

OwnsObjects can be set to true to let the stringlist instance own the objects in the list: if an element is removed from the list, the associated object (if there is any) will be freed as well. The same is true if the list is cleared or destroyed.

See also

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