I'm using sqlit3 in an application. When I add a record to the database, it works fine, but when I try to delete a record, it shows that the record is deleted, but if I close the program and go back in again, the deleted record is still there. It's like the delete transaction is not sticking. The event handler for the dbnavigator uses an after delete and an after post:
procedure Tmain_form.sqlite_ds_itemAfterDelete(DataSet: TDataSet);
begin
dmr.sqlite_ds_item.UpdateRecord;
dmr.sqlite_ds_item.ApplyUpdates;
end;
procedure Tmain_form.sqlite_ds_itemAfterPost(DataSet: TDataSet);
begin
dmr.sqlite_ds_item.UpdateRecord;
dmr.sqlite_ds_item.ApplyUpdates;
end;
I think this should work but don't know why the database is not being saved when the program closes.
Thanks for any and all advice on this problem.
Mike