Updates a dataset and all its field components to match the Data Dictionary.
procedure UpdateDataset(Dataset: TDBDataset);
UpdateDataset(TDBDataset Dataset);
DRIntf
Call UpdateDataset to ensure that a dataset reflects the current settings in the data dictionary. Specify the dataset to update as the Dataset parameter.
If Dataset is a TTable, UpdateDataset updates the Constraints property so that all imported constraints match the Data Dictionary and updates all the field components to match the associated attribute sets.
If Dataset is a TQuery or TStoredProc, UpdateDataset updates the field components to match the associated attribute sets and parses the query to obtain any field constraints included in the constituent tables.
Calling UpdateDataset is equivalent to using "Retrieve attributes" for all fields in the fields editor followed by "Read From Dictionary" in the Constraints property editor.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|