CodePudding user response:
Are studying, there is a batch mode, but don't use on DEV,
Procedure Tincoming_edit. BitBtn1Click (Sender: TObject);//determine 1
The begin
Dm1. ADO_incoming. UpdateBatch;
Dm1. ADO_incoming_item. UpdateBatch;
Incoming_edit. Incoming_report. Enabled:=true;
Application. MessageBox (' successfully saved ', 'golden era prompt you! ', MB_OK + MB_ICONINFORMATION +
MB_TOPMOST);
BitBtn1. Enabled:=False;
end;
CodePudding user response:
Data set LockType set as ltBatchOptimistic, post is stored in the cache, only UpdateBatch () is committed to the databaseDon't know if you want