Author: G Gambill
Posted: 2006-06-28 at 18:20:53
Jaime,
Thanks, works great.
George
On 6/28/06, Jaime Vasquez <jrvasquez@alexandria.cc> wrote:
>
>
> 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.
>
>
[excessive quoting removed by server]