If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > need help with inet control

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-17-02, 10:02
peleejosh peleejosh is offline
Registered User
 
Join Date: Jul 2002
Posts: 2
need help with inet control

i am running a url validation program that fills a recordset with urls then one by one opens them and check for timeouts, server not found, and other errors. the problem is when our internet services go down the program freezes. how can i test for the internet being down and display and error message or shut down the program??
Reply With Quote
  #2 (permalink)  
Old 08-27-02, 16:08
JefB JefB is offline
Registered User
 
Join Date: Aug 2002
Location: Québec, Canada
Posts: 109
Use the Internet Control StateChanged event:

Private Sub Inet1_StateChanged(ByVal State As Integer)
End Sub

the State parameters will tell you what is going on, icError (=11) will tell you that there is an error, for more detail look on MSDN documentation

Is that working in your case?

JefB - hope it helps
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On