Oops, you're right. It should be:
Code:
If Instr(1, textOut.text, vbNewLine & ")") then
Yap, vbnewline followed by ")" indicates that there is more data in the next page, and if there is no more data, I only got the data without vbnewline + ")", that's why I wanna make it loop until no more vbnewline + ")" at the end of data.
Hm, just a wild guess, is there any code to save the next instruction address so it's possible to jump to that address when the DataArrival Event triggered.
Example:
Code:
Private Sub con_DataArrival(ByVal bytesTotal As Long)
Dim reply_out as String
If con.State = sckConnected Then
con.GetData reply_out
If con.Tag = "PrintOutput" then 'Print Output Event Indicator
'That code put here, if possible, to jump to that address
End If
End If
End Sub
Thanks