[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'DB' (#fcl)

TDefCollection

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Definition collection

Declaration

Source position: db.pas line 148

type TDefCollection = class(TOwnedCollection)

public

  constructor create();

  

Instantiate a new TDefCollection instance.

  function Find();

  

Find an item by name

  procedure GetItemNames();

  

Return a list of all names in the collection

  function IndexOf();

  

Find location of item by name

  property Dataset: TDataSet; [r]

  

Dataset this collection manages definitions for.

  property Updated: Boolean; [rw]

  

Has one of the items been changed

end;

Inheritance

TDefCollection

  

Definition collection

|

TOwnedCollection

|

TCollection

|

TPersistent,IFPObserved

|

TObject

Description

TDefCollection is a parent class for the TFieldDefs and TIndexDefs collections: It holds a set of named definitions on behalf of a TDataset component. To this end, it introduces a dataset property, and a mechanism to notify the dataset of any updates in the collection. It is supposed to hold items of class TNamedItem, so the TDefCollection.Find method can find items by named.


Documentation generated on: Jun 23 2021