I am using the inet control under VB6 with the following code:
Private Sub cmdGetFile_Click()
Dim strURL As String
' Take input for address to connect to
strURL = txtURL.Text
' Use inet control to logon to server
.URL = strURL
.UserName = "anonymous"
.Password = "jasons@"
' Get file from server
.Execute , "GET test.txt c:\windows\desktop\README"
, "GET test.txt c:\windows\desktop\READMEB
Now What happens is that an error message appears whenever the second GET method is executed. This is not replicated under the debug session. The error that apears is that the previous command is still executing. Now I understand that this is an async. control and that it just executes without waiting for the previous to stop runnning. I have even tried putting in a Do While Loop like so:
Do While control.StillExecuting = True
Thus it should sit around until it receives the correct termination of the previous get.
Is this a bug or is it something I am doing wrong?
There's an extra 500 points if this one is answered correctly today!!!!