폼이 close되기 전에 폼을 닫을지 말지를 결정하는 CanClose변수를 통해 결정 true면 닫히고, false면 복귀된다. Application.HandleException(self)는 에러발생메세지 창을 통해 에러를 알린다. procedure TForm1.Form1CloseQuery(Sender: TObject; var CanClose: Boolean); begin if Employees.Active then try { When closing, update the database if connected or sa..