Page 1 of 1

OnConnectionLost

Posted: Mon 26 Sep 2011 13:26
by 777Yves
Hi, in tMyConnection when I click on OnConnectionLost, in the source code,
TConnLostCause is underscore in red so probably a uses clause is missing,

witch one ?

Code: Select all

procedure TDmGest.adGestConnectionLost(Sender: TObject; Component: TComponent;
  ConnLostCause: TConnLostCause; var RetryMode: TRetryMode);
begin

end;
Thanks

Posted: Mon 26 Sep 2011 15:08
by AndreyZ
Hello,

To solve the problem, you should add the MemData unit to the USES clause of your unit. You can find a note about that in the description of the OnConnectionLost event in the MyDAC documentation.

OnConnectionLost

Posted: Mon 26 Sep 2011 18:40
by 777Yves
Hi, you are rigth, I apology. I did not check at the right place.