Greetings all
I am updating an older project which still runs on tDBF.
I have a routine that counts the visible rows in a DBgrid and added the code for the count update in the datamodule under the DBF.AFTERDELETE and DBF.AFTERPOST events.
The counter procedure is public on form1 and the database is on a datamodule.
This works great, but there is one odd issue.
I have a little loop that correctly deletes the entire database when done, but the moment i add that counter code to the DBF.afterdelete it deletes the first entry and then nothing further.
I tried to disable controls before the delete loop, but it simply ignores it.
procedure TDm1.OuttempAfterDelete(DataSet: TDataSet);
begin
form1.Updatecount;
end;
I assume something is making my loop exit, but perhaps its something to do with calling a procedure on the first form from the datamodule. I am making wild guesses here.
Any guru here with an idea would be most welcome.
Regards, Peter