Replaces all imported constraints for a dataset with the current constraints in the Data Dictionary.
procedure UpdateConstraints(Dataset: TDBDataset; Constraints: TCheckConstraints);
UpdateConstraints(TDBDataset Dataset, TCheckConstraints Constraints);
DRIntf
Call UpdateConstraints to ensure that the constraints for a dataset match the current values stored in the Data Dictionary. Specify the dataset to which the constraints apply as the DataSet parameter. Specify the TCheckConstraints object that represents that dataset's constraints as the Constraints parameter.
UpdateConstraints removes all constraints with a non-empty ImportedConstraint property and replaces them with new constraints that match the values in the Data Dictionary.
UpdateConstraints is equivalent to calling "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!
|