Copy parameter values from the fields in a dataset.
Source position: db.pas line 1553
public procedure TParams.CopyParamValuesFromDataset( |
ADataset: TDataSet; |
CopyBound: Boolean |
); |
ADataset |
|
Dataset to copy values from. |
CopyBound |
|
Copy value also for bound parameters ? |
CopyParamValuesFromDataset assigns values to all parameters in the collection by searching in ADataset for fields with the same name, and assigning the value of the field to the Tparam instances using TParam.AssignField. By default, this operation is only performed on TParam instances with their Bound property set to False. If CopyBound is true, then the operation is performed on all TParam instances in the collection.
If, for some TParam instance, ADataset misses a field with the same name, an EDatabaseError exception will be raised.
|
Parameter description class. |
|
|
Is the parameter value bound (set to fixed value). |
|
|
Copy value from field instance. |
|
|
Base class for records-based data-access. |
|
|
Search a field by name. |