Page 1 of 1
How to use the Ping method?
Posted: Wed 18 Jun 2014 02:01
by ibdac1pro
Hi,
if UniConnection.Ping then
ShowMessage('...');
Error....
How to use the Ping method?
UniDac 5.3.9.
Re: How to use the Ping method?
Posted: Wed 18 Jun 2014 08:19
by AlexP
Hello,
The Ping method is a procedure and it doesn't return execution result, therefore you should use a try...except block to handle it.
Code: Select all
try
UniConnection.Ping;
ShowMessage('OK');
except
on E: Exception do
ShowMessage(E.Message);
end;
Re: How to use the Ping method?
Posted: Thu 19 Jun 2014 01:44
by ibdac1pro
Thanks a lot.
Re: How to use the Ping method?
Posted: Thu 19 Jun 2014 06:56
by AlexP
If you have any further questions, feel free to contact us.