Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法知道处于编辑状态的 TAdoQuery 是否已更改?
假设我们强制它进入编辑状态,并且我们想询问用户是否想要保留更改。
您拥有以下TADOQuery.Modified财产:
TADOQuery.Modified
if ADOQuery1.State in [dsEdit, dsInsert] and (ADOQuery1.Modified) then if KeepChanges then ADOQuery1.Post else ADOQuery1.Cancel;