PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Checks whether a network address can be reached by using the ICMP protocol (similar to the PING network utility).
Versions 24 and later
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
New in version 24
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Versions 27 and later
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
IOS Widget This function is now available in iOS widget mode.
Mac Catalyst This function is now available in Catalyst mode.
New in version 27
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
IOS Widget This function is now available in iOS widget mode.
Mac Catalyst This function is now available in Catalyst mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
iPhone/iPad This function is now available for iPhone/iPad applications.
IOS Widget This function is now available in iOS widget mode.
Mac Catalyst This function is now available in Catalyst mode.
Example
IF Ping("www.mysite.com") = True THEN
Info("The server is available. You can see the News")
ELSE
Info("Server temporarily unavailable")
END
Syntax
<Result> = Ping(<Address> [, <Maximum duration>])
<Result>: Boolean
  • True if the sought address is "visible" on the network,
  • False otherwise.
<Address>: Character string
Address for which the network connection must be checked. This IP address can have the following format:
  • Address in XXX.XXX.XXX.XXX format (125.5.110.100 for example). This syntax is recommended.
  • DNS address of the computer (www.windev.com for instance).
  • Address returned by NetIPAddress
<Maximum duration>: Optional integer or optional Duration
Maximum duration allowed to find the address (in milliseconds). This parameter can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • Versions 23 and later
    the duration in a readable format (e.g., 1 s or 10 ms).
    New in version 23
    the duration in a readable format (e.g., 1 s or 10 ms).
    the duration in a readable format (e.g., 1 s or 10 ms).
This duration is set to 1000 by default.
Remarks
The Ping function is essentially a network diagnostic tool. It does not guarantee that:
  • the computer will respond on a given port (to do so, use SocketConnect).
  • the computer is broken. Indeed, if the ping service is stopped on the computer, this computer will stop responding while it is still operating properly.
Business / UI classification: Business Logic
Component: wd270com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment