alesf76 Posted January 15, 2018 Share Posted January 15, 2018 Is it possible to force to posting of the updates to the db on exiting of a TUniDBMemo field using professional editon ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 15, 2018 Share Posted January 15, 2018 Hi, Do you mean "autosave"? Quote Link to comment Share on other sites More sharing options...
alesf76 Posted January 15, 2018 Author Share Posted January 15, 2018 I would like to obtain the same effect of pressing the "post" button on a dbtoolbar when the user exists from a dbmemo. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16, 2018 Share Posted January 16, 2018 Hi, Maybe you wanted like this ?!: procedure TMainForm.UniDBMemo1Exit(Sender: TObject); begin with (Sender as TUniDBMemo).DataSource.DataSet do if State in [dsEdit] then Post; end; Best regards, Quote Link to comment Share on other sites More sharing options...
alesf76 Posted January 19, 2018 Author Share Posted January 19, 2018 It works. Thanks. Quote Link to comment Share on other sites More sharing options...
alesf76 Posted October 3, 2018 Author Share Posted October 3, 2018 Could it be done also with a dbgrid cell ? I tried but in the onexit event the dataset is "dsInactive" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.