在此表中加入一个字段,类型为BOOLEAN,初值为FALSE。如果用户使用修改某条记录后,在提交前,将该记录中该字段的BOOLEAN值设为TRUE,即可。

解决方案 »

  1.   

    这个可以吗?我没试过,你试试吧。TCustomADODataSet.RecordStatus
    Indicates the status of the current row.property RecordStatus: TRecordStatusSetDescriptionRead RecordStatus to determine the status of the current row relative to batch updates or other bulk operations. Among other record state aspects, RecordStatus indicates whether the current record is new, modified, deleted, or unmodified. RecordStatus will also give an indication why a row is not saved when modifying, adding, or deleting data.Note: RecordStatus only provides meaningful information if the dataset is opened in batch update mode.