Subject | correct closing of MDI-children ? |
---|---|
Author | Oliver Wurdak |
Post date | 2002-01-10T20:15:22Z |
I have a MDI-Application with a connection and transaction component on the
MDI-parent form (tiCommited,Autocommit)
on many MDI-child forms I use TIB_Query objects with the connection from the
mainform. In the OnCreate-method I open the query. What happens when the
user closes the form? Causes this a Commit (or Commitretaining) ?
Should I write a OnClose event handler ?
e.g TIB_Query.close or is it a good idea to do some transaction handling in
such a handler perhaps start a new Trancaction
Any help would be appreciated.
Oliver
MDI-parent form (tiCommited,Autocommit)
on many MDI-child forms I use TIB_Query objects with the connection from the
mainform. In the OnCreate-method I open the query. What happens when the
user closes the form? Causes this a Commit (or Commitretaining) ?
Should I write a OnClose event handler ?
e.g TIB_Query.close or is it a good idea to do some transaction handling in
such a handler perhaps start a new Trancaction
Any help would be appreciated.
Oliver