I am sorry for my English
I have the next problem with OnError event at TMyConnection.
procedure TmyDataModule.MySQLConnectionError(Sender: TObject; E: EDAError; var Fail: Boolean);
begin
unit2.myDataModule.MySQLConnection.Disconnect;
// i don't know is that command necessary, but i use it to make secure
Fail:= false;
// it used don't display error message
unit3.ParamForm.ShowModal;
// show form where user can change connection parameters
// and try to connect again
end;
My problem at last command. when user change parameters and successful connecting with mysql server, then unit3.ParamForm is closed. that is all right.
But, independently of fact, was the command "Disconnect" used by me or not, Disconnect is occurs after OnError event is finished. Thus, the actions executed by the user (try to connect), was useless.
Whether, can I make so that Disconnect did not occur automatically after OnError event is finished? Or I have to use ParamForm at another procedure after OnError event?
Thank You!