上面的全部错误:
TCustomClientDataSet.UpdateStatus
Reports the update status for the current record in the dataset.
function UpdateStatus: TUpdateStatus;
override;
Description
Call UpdateStatus to determine the update status for the current record in the client dataset. Update status can change frequently as records are edited, inserted, or deleted. UpdateStatus offers a convenient method for applications to assess the current status before undertaking or completing operations that depend on the update status of the current record.
Note: To determine whether there are updates pending for an entire dataset, check the ChangeCount property.
如下代码:
with cdsdo
begin
First;
while not eofdo
begin
case UpdateStatus of
usUnmodified :begin
end;
//The current record has no unapplied updates
usModified: begin
end;
//
The current record has unapplied modifications.
usInserted :begin
end;
//The current record has been inserted but the insertion was not applied.
usDeleted: begin
end;
//The current record represents a deleted record, where the deletion
has not yet been applied.
.
end;
end;
Next;
end;