check if there is an internet connection

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

check if there is an internet connection

Post by AriSilva »

Hi folks,
I´m using 7.7.2 in a DE program,.
When issuing a command like
if syncconnect(CSWeb, servidor) = 1 then
...
else
errmsg();
endif;

Before executing the else part of the if when there is no internet connection, the system shoots a standard message like "there is no connection... Unable to resolve host etc". Then, after that, it shoots my errmsg.
Is there a way to check if there is an internet conectivity before issuing the synconnect command?
Best
Ari
Best
Ari
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: check if there is an internet connection

Post by Gregory Martin »

Take a look at the connection function: https://www.csprousers.org/help/CSPro/c ... ction.html
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

Re: check if there is an internet connection

Post by AriSilva »

Great,
Thank you, Greg.
I would suggest then that the help for syncconnect should have a see also pointing to this connection function.
Best
Ari
Best
Ari
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: check if there is an internet connection

Post by sherrell »

Well noted Ari. I've just added in a brief mention of it on the sync pages and a link in the "see also" block.

Sherrell
Post Reply