Unit 'Contnrs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPObjectList.Create

Create a new object list.

Declaration

Source position: contnrs.pp line 44

public constructor TFPObjectList.Create;

constructor TFPObjectList.Create(

  FreeObjects: Boolean

);

Arguments

FreeObjects

  

Should objects be freed when removing them from the list.

Description

Create instantiates a new object list. The FreeObjects parameter determines whether objects that are removed from the list should also be freed from memory. By default this is True. This behaviour can be changed after the list was instantiated.

Errors

None.

See also

TFPObjectList.Destroy

  

Clears the list and destroys the list instance.

TFPObjectList.OwnsObjects

  

Should the list free elements when they are removed.

TObjectList

  

List to manage object instances.


Documentation generated on: Jul 24 2023