Results 1 to 2 of 2

Thread: Inet controls

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    26

    Wink

    Any ideas how I detect when a web page has been downloaded complete using "Inet".


  2. #2
    New Member
    Join Date
    Jan 2001
    Location
    Italy
    Posts
    2
    I found this code from http://www.vbcode.co.uk
    If you use the GetChunk it could help you.

    Title: Make sure the Inet control has all its data

    When you issue the GetChunk command for the Inet control, don't
    forget to wait until it's done before continuing with code that
    manipulates the return values. Depending on the user's connection
    speed, the GetChunk method may take several seconds. To give the
    method a chance to complete before executing the rest of the code,
    use the DoEvents keyword, like so:
    Private Function GetData()
    Dim vData As Variant
    Dim strTemp As String
    Do
    vData = Inet1.GetChunk(256, icString)
    DoEvents
    If Len(vData) Then
    strTemp = strTemp & vData
    lblBytesReceived.Caption = CStr(Len(strTemp))
    End If
    Loop While Len(vData)
    GetData = strTemp
    End Function


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width