Mega Code Archive

 
Categories / Delphi / ADO Database
 

DBISavechanges

Title: DBISavechanges Question: How do I prevent the BDE from loosing information in an application when the PC locks up. Answer: Use the BDE API call DBISavechanges(handle). This will save all data in buffers directly to the database thus preventing a loss of data should anything go wrong in the current database session. Example Add BDE to the forms uses clause procedure TDataform.qryEmployeeAfterPost(DataSet: TDataSet); begin DBISavechanges(qryEmployee.handle); end;