Just started to switch over to Zeoslib. Everything works fine.
I have a question regarding ZUpdateSQL.
In BDE or (SQLdirect), I'm able to trigger the updatesql to do an insert using
(Query1.UpdateObject as TUpdateSQL).Apply(ukInsert);
example below:
Code: Select all
procedure TForm1.Query1AfterEdit(DataSet: TDataSet);
begin
if Query1.FieldByName('REASON').IsNull and
Query1.FieldByName('CAUSE').IsNull and
then
begin
(Query1.UpdateObject as TUpdateSQL).Apply(ukInsert);
end;
end;