Welcome! Log In Create A New Profile

Advanced

Function InternetConnected()

Posted by Freddy 
Freddy
Function InternetConnected()
July 30, 2008 11:38AM
Hi,

There seems to be a problem with the function internetconnected().
With one of my clients there is often a network problem, only Local network is available at that moment.
Although this is not correct, the function internetconnected returns TRUE.
This malfunction causes problems in my application with SQLtransactions.
Does somebody has this problem also and found a solution maybe ?

Kind regards

Freddy
Paulo Oliveira
Re: Function InternetConnected()
July 30, 2008 12:47PM
I connect to the internet using proxy server.
The internetconnected() doesn't work for me.
To solve the problem (i need to know if the db server is reacheable) i use ping instead.

if not ping(NetIPAddress(mydbserver.com)) THEN
error("db unavailable")
endprogram()
END
Freddy
Re: Function InternetConnected()
August 01, 2008 09:18AM
Thanks Paulo, this solved my problem.

Kind regards

Freddy
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: