Mike: Another question... do you know how to control the useage of the dial-up dialog? When you start VFP9 and are off-line, you get the dialog to launch your dial-up service. Your code will do the same the first time you invoke it. (Tries to connect to the URL) If you close the dialog without connecting, on subsequent execution of the code it does not try to launch the dial-up. Can you a) omit the dial-up when offline and running the code for the first time, and b) launch the dial-up programatically if you know you are not connected?
Thanks,
dg
>This is how I test:
>
>
>Declare Integer InternetCheckConnection in Wininet.dll String Url, Long dwFlags, Long Reserved
>If InternetCheckConnection(lcURL, 1, 0) = 0
> MessageBox("Not connected to the internet.", 16)
>EndIf
>
>
>If you're checking for a connection so you can call a web service or some other kind of HTTP functionality, you can pass that specific URL as lcURL.