Re: How To Know If an Internet Connection is Active

Author: Jaime Vasquez

Posted: 2006-06-28 at 14:01:31

G Gambill wrote:

> How can I determine if an Internet Connection is active for PostCast

> Server.

>

> I thought about

>

> oIE = createobject( 'internetexplorer.application')

> oIE.Navigate2( "http://www.yahoo.com" <http://www.yahoo.com/>)

>

>

> but can't figure out how to programatically test if that was successful.

>

> TIA

>

> George

Hi George:

Declare Integer InternetCheckConnection in Wininet.dll String Url, Long

Flags, Long Reserved

lnResult = InternetCheckConnection("http://leafe.com/",1,0)

If lnResult != 0

Msg = "Connected!"

Else

Msg = "Not connected!"

EndIf

MessageBox(msg)

HTH

Jaime Vasquez

Guatemala, C.A.

©2006 Jaime Vasquez