[fpc-pascal] Lookup fields in databases

Marc Santhoff M.Santhoff at web.de
Sat Aug 29 07:26:02 CEST 2015


Hi,

peeking the database code I found that:

- a TDataSet has FieldDefs
- fields are described by TFieldDef(s)
- TField has several special properties like "KeyFields" and
"LookupDataset"

How are these properties of TField (descendants) set and by whom?

I can imagine the information to set the lookup dataset is stored inside
the databases metadata using contraints (foreign key references ...).

Or are those props for wiring by the programmer manually at design time?

TIA,
Marc

-- 
Marc Santhoff <M.Santhoff at web.de>




More information about the fpc-pascal mailing list