可用TUpDataKind
TUpdateKind defines the values for the UpdateKind parameter of OnUpdateError and OnUpdateRecord event handlers.
ukModify The cached update to the record is a modification to the record's contents.
ukInsert The cached update is the insertion of a new record.
ukDelete The cached update is the deletion of a record.李维说Borland没有公布Delta的格式...
TUpdateKind defines the values for the UpdateKind parameter of OnUpdateError and OnUpdateRecord event handlers.
ukModify The cached update to the record is a modification to the record's contents.
ukInsert The cached update is the insertion of a new record.
ukDelete The cached update is the deletion of a record.李维说Borland没有公布Delta的格式...
begin
if SourceDS = Query1 then
case UpdateKind of
ukInsert: begin ... end;
ukModify: begin ... end;
ukDelete: begin ... end;
end;
end; 大概就这样了吧,看看李维的书和帮助...
if cds1.state:=ukInsert then
showmessage('插入状态');