My program, which I designed for multi-platform, is OK on Android, but problematic on Windows. Error : Invalid Parameter

121 Views Asked by At
// ConnectionRemote   :TSQLConnection; 
// CDSBilgiler        :TClientDataSet; 
// CDSBilgilerID      :TIntegerField;    // Not arAutoInc
// CDSBilgilerVALUE   :TWideStringField;
// CDSBilgilerPC      :TSmallintField;
// DSProvConnBilgiler :TDSProviderConnection;
// DSProvConnBilgiler.ServerClassName := TServerMethods1
// DSProvConnBilgiler.Connection      := ConnectionRemote

   CDSBilgiler.Edit;             
   CDSBilgilerPC.AsInteger := 1;
   CDSBilgiler.Post;
   Showmessage('Point - 1');
   CDSBilgiler.ApplyUpdates(-1);       // The problematic line is here. Error : Invalid Parameter.
   Showmessage('Point - 2');           // 2nd message not displayed after error  
   CDSBilgiler.Close;

I've looked at all the threads about ApplyUpdates() on your site. I've been trying for almost a week, but I couldn't find the solution. Thank you in advance to those who help.

0

There are 0 best solutions below