Page 1 of 1

check if there is an internet connection

Posted: August 6th, 2022, 5:53 pm
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

Re: check if there is an internet connection

Posted: August 8th, 2022, 9:49 am
by Gregory Martin
Take a look at the connection function: https://www.csprousers.org/help/CSPro/c ... ction.html

Re: check if there is an internet connection

Posted: August 11th, 2022, 7:39 pm
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

Re: check if there is an internet connection

Posted: August 11th, 2022, 11:09 pm
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