Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4491

Re: Check internet connection

From "Jamal" <vodotnet_nospam@yahoo.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Check internet connection
Date 2012-12-18 23:33 -0500
Organization A noiseless patient Spider
Message-ID <karg29$cge$1@dont-email.me> (permalink)
References <c61b3fc6-312f-4045-93d6-2b02075dfcd5@googlegroups.com>

Show all headers | View raw


All,

Here is my take on this subject.
Use VO  cHttp class!  Check for a website that is hardly ever down. Turn 
on/off your internet connection and test. It works.

FUNCTION IsInternetConnection() AS LOGIC PASCAL
    LOCAL oMyHttp AS cHttp
    LOCAL lOk AS LOGIC

    oMyHttp := CHttp{}

    lOk := ( SLen(oMyHttp:GetDocumentByURL("http://microsoft.com")) > 0 )

RETURN lOk

// Sample usage:

FUNCTION Start()

    InfoBox{, "", IIF(IsInternetConnection(), "Internet Up", "Internet 
Down")}:show()


RETURN NIL

Hope this helps!

Jamal Assaf

Make sure you add the Internet libs to your project.


"danijel koprivnjak"  wrote in message 
news:c61b3fc6-312f-4045-93d6-2b02075dfcd5@googlegroups.com...

hi,
how to easiest check internet connection on computer (status on off )
from VO 2.7
thx
Danijel 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Check internet connection danijel koprivnjak <danijel.koprivnjak@gmail.com> - 2012-12-14 01:14 -0800
  Re: Check internet connection Camille Kater <katercamXXX@pt.lu> - 2012-12-14 10:54 +0100
    Re: Check internet connection danijel koprivnjak <danijel.koprivnjak@gmail.com> - 2012-12-14 03:21 -0800
      Re: Check internet connection danijel koprivnjak <danijel.koprivnjak@gmail.com> - 2012-12-14 04:09 -0800
        Re: Check internet connection elchuneme <jzertucherodriguez@gmail.com> - 2012-12-14 18:31 -0800
          Re: Check internet connection "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-12-15 22:14 +0100
            Re: Check internet connection elchuneme <jzertucherodriguez@gmail.com> - 2012-12-15 14:30 -0800
              Re: Check internet connection "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2012-12-15 23:33 +0100
    Re: Check internet connection James Martin <jmmicmc@cyg.net> - 2012-12-18 05:44 -0800
      Re: Check internet connection Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2012-12-18 14:13 +0000
        Re: Check internet connection James Martin <jmmicmc@cyg.net> - 2012-12-18 06:48 -0800
      Re: Check internet connection Meinhard Schnoor-Matriciani <msm@appfact.de> - 2012-12-18 15:45 +0100
  Re: Check internet connection "Jamal" <vodotnet_nospam@yahoo.com> - 2012-12-18 23:33 -0500

csiph-web