|
-
Jan 5th, 2001, 04:51 PM
#1
Thread Starter
Junior Member
Any ideas how I detect when a web page has been downloaded complete using "Inet".
-
Jan 7th, 2001, 06:38 AM
#2
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|