[Overview][Constants][Types][Classes][Index] Reference for unit 'fgl' (#rtl)

TFPGObjectList.Create

Instantiate a new object list.

Declaration

Source position: fgl.pp line 175

public constructor TFPGObjectList.Create(

  FreeObjects: Boolean = True

);

Arguments

FreeObjects

  

When True the list owns the objects.

Description

Create instantiates a new object list. It will simply call the inherited constructor with the correct item size and will initialize TFPGObjectList.FreeObjects with FreeObjects.

If FreeObjects is true, then the list owns the objects. 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.

See also

TFPGObjectList.FreeObjects

  

Does the list own the objects or not?


Documentation generated on: Sep 28 2017