Sign in Join
FPDoc Onlineexperiment

TDefCollection.create constructor

Member of TDefCollectionpublicIn unit DB

Instantiate a new TDefCollection instance.

Declaration

pascal
constructor create(ADataset: TDataSet; AOwner: TPersistent; 
 AClass: TCollectionItemClass)

Arguments

ADataset

Dataset to manage definitions for.

AOwner

Owner of the items in the collection.

AClass

Item class for Add call.

Description

Create saves the ADataset and AOwner components in local variables for later reference, and then calls the inherited Create with AClass as a parameter. AClass should at least be of type TNamedItem. ADataset is the dataset on whose behalf the collection is managed. AOwner is the owner of the collection, normally this is the form or datamodule on which the dataset is dropped.

See also

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