Форум программистов > Delphi: Базы данных и репортинг > Как предотвратить Data Corruption (повреждение данных)?
Автор: Poseidon 18.5.2005, 14:56
Код
{ If a database or a table is local on a PC installed (Paradox or Dbase) and the BDE-setting "LOCAL SHARE" is FALSE, then changings are not stored immediatly but are kept in the memory. This changings are gone after a chrash. So it might be better after changing to store the data physically on the disk: }
uses BDE;
procedure TForm1.Table1AfterPost(DataSet: TDataSet); begin DbiSaveChanges(Table1.Handle); end;