UniConnectDialog CancelButton
Posted: Wed 10 May 2017 15:08
Hi!
After clicking the CancelButton in the Connectdialog, the procedure does not work any further (After UniConnection1.Connect).
How can I find out if the CancelButton was pressed
Code: Select all
UniConnection1.ConnectDialog:=UniConnectDialog1;
UniConnection1.LoginPrompt:=true;
UniConnection1.Connect;
ShowMessage('Next');
if UniConnection1.Connected=false then
ShowMessage('not Connected')
else
ShowMessage('Connected');
How can I find out if the CancelButton was pressed