<FONT FACE=monospace><br>Private Sub Inet1_StateChanged(ByVal State As Integer)<br>Select Case State<br> Case 12 Or 8 'Is Receiving a Response, or Response has been Received completely<br> Dim TmpMinors<br> Dim rtn As Long<br> Dim InitComplete As Boolean<br> Dim QuitLoop As Boolean<br> InitComplete = False<br> Dim Step As Integer<br> Step = 1<br> <br> Dim vtData As Variant ' Data variable.<br> Dim strData As String: strData = ""<br> Dim bDone As Boolean: bDone = False<br><br> ' Get first chunk.<br> vtData = Inet1.GetChunk(1024, icString)<br> DoEvents<br> Do While Not bDone<br> strData = strData & vtData<br> DoEvents<br> ' Get next chunk.<br> vtData = Inet1.GetChunk(1024, icString)<br> If Len(vtData) = 0 Then<br> bDone = True<br> End If<br> If InitComplete = False Then<br> rtn = InStr(1, strData, "`"

<br> If rtn > 0 Then<br> rtn = InStr(rtn + 1, strData, "`"

<br> End If<br> Else<br> rtn = InStr(GrpIndex, strData, "¦"

<br> End If<br> While rtn > 0 And QuitLoop = False<br> If InitComplete = False Then<br> Dim InitStr As String<br> Dim InitAry<br> InitStr = Left(strData, rtn - 1)<br> InitAry = Split(InitStr, "`"

<br> If InitAry(0) = "1" Then<br> LstI(0).AutoSize = True<br> Else<br> LstI(0).AutoSize = False<br> End If<br> LstI(0).ColumnList = InitAry(1)<br> QuitLoop = True<br> GrpIndex = rtn + 1<br> InitComplete = False<br><font color=red> Else<br> <br> End If</font><br> Wend<br> QuitLoop = False<br> Loop<br>End Select<br>End Sub<br></font><br> <p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href=
</a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>