문제

Is there a way to know if TAdoQuery in Edit state was changed?

Assuming we forced it into edit state, and we want to ask the user if he wants to keep the changes.

도움이 되었습니까?

해결책

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;        
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top