Jump to content
Fórum Script Brasil
  • 0

(Resolvido) Erro ao dar Refresh em DBGrid


ShAwL!nN

Question

Boa noite, gostaria de relatar um erro que estou tendo em meu programa.

Utilizo os componentes para conexao BD em arquivo XML:

DataSource1

ClientDataSet1

e com estes consigo ligar o bd.xml no DBGrid1 , DBNavigator1 e os demais DBEditsX.

E quando vou dar um Refresh pelo DBNavigator1, me aparece este erro:

:wacko:

2vw8bax.jpg

Edited by ShAwL!nN
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

exemplo:

voce coloca o código no botão salvar

try
  try
   CDS_CadmovX.Edit;
   CDS_CadmovX.Post;
   //gera a exceção para propagar o erro
   if CDS_CadmovX.ApplyUpdates(0) > 0 Then
      Abort
   else
      CDS_CadmovX.ApplyUpdates(-1);
   except
      //Limpa o Delta .Todas as Alteraçoes , inserçoes , ediçoes são Zeradas
      CDS_CadmovX.MergeChangeLog;
   end;
finally
   CDS_CadmovX.Refresh;
end;

abraço

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...