Syntax
HostIsAvailable <hostname-or-address>Description
Returns True if the specified Internet host is available.Parameters
<hostname-or-address>
- The Internet host name or numeric address.
Remarks
This statement performs a ping communication to the specified host.Example
If HostIsAvailable "www.p1.com" Then
InternetGet URL="www.p1.com/index.html" Result=pageBuffer
Else
MessageBox Title="Error" Text="Host is not available." StayInFront
EndIfThe above script fragment obtains a copy of the P1 Systems homepage if the www.p1.com host is available.