PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Firewall
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
InternetConnected (Function)
In french: InternetConnecté
Defines whether an Internet connection is enabled on the current computer.
Example
// Connexion Internet active?
ResConnexion = InternetConnected()
IF ResConnexion = True THEN
Info("Une connexion Internet est active")
ELSE
Info("Aucune connexion Internet n'est active")
END
Syntax

Finding out whether an Internet connection is enabled Hide the details

<Result> = InternetConnected()
<Result>: Boolean
  • True if an Internet connection is enabled on the current computer,
  • False otherwise.
Remarks
Reports and Queries

Firewall

The InternetConnected function uses an ping request to test access to INTERNET. Therefore, the ping must be allowed by the security parameters of the network in order for the result of the function to be pertinent.
Remark: The ping is performed on the Google DNS (6 seconds, 1 attempt). The equivalent code is:
Ping("8.8.8.8", 6000, 1)
Component: wd270com.dll
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment