| [Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | 
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Definition collection
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  | 
  | 
Dataset this collection manages definitions for.  | 
|
property Updated: Boolean; [rw]  | 
  | 
Has one of the items been changed  | 
end;  | 
  | 
Definition collection  | 
|
| | | ||
| | | ||
| | | ||
| | | ||
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.