AnyDAC
ContentsIndexHome
PreviousUpNext
TADDataSet.UpdateStatus Method

Returns the modification status for current record.

Group
Links

Record modification status.

Use UpdateStatus method to get the modification status for the current dataset record. The function returns one of the following values:

Status 
Description 
usUnmodified 
Record is in its original unmodified state. 
usModified 
Record is modified. Changes are not posted to database. 
usDeleted 
Record is deleted. Changes are not posted to database. 
usInserted 
Record is inserted. Changes are not posted to database. 
function UpdateStatus: TUpdateStatus; override;
procedure TForm1.ADQuery1AfterScroll(DataSet: TDataSet);
begin
  case TADQuery(DataSet).UpdateStatus of
  usUnmodified: Label1.Caption := '';
  usModified: Label1.Caption := 'Modified';
  usDeleted: Label1.Caption := 'Deleted';
  usInserted: Label1.Caption := 'Inserted';
  end;
end;
What do you think about this topic? Send feedback!