Delphi TDataSetProvider.ApplyUpdates how to use

453 Views Asked by At

I cannot figure out which parameter to pass to TDataSetProvider.ApplyUpdates The definition says: function ApplyUpdates(const Delta: OleVariant; MaxErrors: Integer; out ErrorCount: Integer): OleVariant;

What should I pass to the parameter Delta? I cannot find any example in the delphi documentation. I am usign dbexpress and I want to call ApplyUpdates to apply the changes made to the records to the database.

1

There are 1 best solutions below

0
mjn42 On BEST ANSWER

If the provider and the clientdataset are connected (by setting the provider property of the CDS), changes are applied by

CDS.ApplyUpdates(0);