IsOnline function
Internet utilities
Return to Introduction  Previous page  Next page
Unit
acInet  

Declaration
function IsOnline: Boolean;  

Description
Determines whether user's PC connected to the Internet and returns current Internet status — True if computer connected to the Internet or False otherwise.  

Remark
iiwarning This function is useless on machines with Ethernet cable connection. IsOnline always returns True (online), even if user cut cable off. Unfortunately there is no convinient way to determinate whether computer is online. However, for sure you may try to ping some host or something. This function mostly good for Dial-up modem connections only.  

See also
acSystemInfo component.