delphidbexpress

Delphi TDataSetProvider.ApplyUpdates how to use


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.


Solution

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

    CDS.ApplyUpdates(0);