DelphiFAQ Home Search:
General :: Programming :: Delphi :: Database
Database development with Delphi. Includes issues with BDE, ADO and InterBase.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

This is the FULL list of all articles in this category.

Featured Article

Detecting database changes

Do you need to determine if a user has changed any of the fields of a displayed record, but hasn't yet posted the record?
If so, you can check the current state of the database via the datasource associated with it. To do so, simply write the following code:

 if (Datasource1.State in dsEditModes) then
   {...code you want to execute...}

If the datasource's State property is dsEdit, dsInsert or dsSetKey, this statement will evaluate as true.

Generated 8:01:26 on Sep 25, 2018