I want a boolean function to return whether the PC is connected to the Internet. I have no idea how to start creating this. Could anyone please provide please?
Reason:
I have code that checks an online database and downloads data after the user presses a button.
If the host computer is not currently connected to the net, I would like to display a message of my choice instead of trying to run the code.
To determine whether to run my message or not, I need a function that will return TRUE/FALSE if the host PC is net connected or not.
Bookmarks