I am using inet to read the html of some websites and return the data as a string. I am using the open url method.
e.g
VB Code:
html_source = Inet1.OpenURL(site_str & folder)
The program thread waits here until the inet control returns the html (or generates an error)
However, the code is running in a loop so comes back around to read the next webpage. This sometimes generates an error '35764 - Still executing last request'
How can this be possible? I have already got the html e.g the request. What is the control still doing?
I have added this code
VB Code:
While Inet1.StillExecuting DoEvents Wend
to prevent this error, even though I don't understand why its occuring!
Also could I change it do this?
VB Code:
While Inet1.StillExecuting Inet1.Cancel DoEvents Wend
would this be better than the above code as it will attempt to cancel the operation rather than wait?
Thanks




Reply With Quote