且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

有没有办法知道TAdoQuery处于“编辑”状态是否已更改?

更新时间:2023-12-05 09:26:46

您拥有 TADOQuery.Modified 属性,例如:

You have the TADOQuery.Modified property e.g:

if ADOQuery1.State in [dsEdit, dsInsert] and (ADOQuery1.Modified) then
  if KeepChanges then
    ADOQuery1.Post
  else
    ADOQuery1.Cancel;