Article ID: 171829
Article Last Modified on 10/29/2003
170365 : INFO: Visual Studio 97 Service Packs - What, Where, and Why
171554 : INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2
Option Explicit
Private bwait As Boolean
Private Sub Inet1_StateChanged(ByVal State As Integer)
Dim s$, t$
Debug.Print "StateChanged:", State
If State = icResponseCompleted Then
t$ = ""
s$ = Inet1.GetChunk(1024)
DoEvents
While Len(s$) <> 0
t$ = t$ & s$
s$ = Inet1.GetChunk(1024)
DoEvents: DoEvents: DoEvents
Debug.Print ".";
Wend
Debug.Print
Debug.Print Left$(t$, 20), Len(t$)
bwait = True
End If
End Sub
Private Sub Command1_Click()
Dim i As Integer
Dim tmp As Single
For i = 1 To 5
tmp = Timer
While tmp + 1 > Timer
DoEvents: DoEvents: DoEvents
Wend
bwait = False
Inet1.Execute "http://msw"
While Not (bwait)
DoEvents
Wend
Next
End Sub
Keywords: kbbug kbfix kbvbp500sp2fix kbvs97sp2fix KB171829