Internet Epxlorer object Issue
Hi all. VBForums have been helping me a lot last days... but i'm stuck in this problem.
I've a loop, and inside that loop, wich is for every regist in my database, I execute a link in the IExplore object, which returns a string into it. Then, i copy the string inside the object into a vb string, do my operations, then move to the next regist and do the loop again.
The trouble is:
When i make the object browser navigate, first time it return as error when cathing the browser result into the string, because the code procedes without the browser finish his operations.
I've tryed this:
VB Code:
Do While objbrowser.Busy = True
DoEvents
Loop
And it loops for ever and ever and ever...
I've tried the Sleep function... and as i thought, it freez all the code.
And i've tried either the NavigateComplete procedure, of the ObjBrowser, but it never trigers, when executing code.
So... i'm stuck :sick:
Is there anyway to only procede executing the code, when the ObjBrowser.Navigate event finish?
Ty in advance :thumb:
Re: Internet Epxlorer object Issue
remove the DoEvents and check it ....
Re: Internet Epxlorer object Issue
Quote:
Originally Posted by ganeshmoorthy
remove the DoEvents and check it ....
Same thing... seems the loop block the objiexplorer from runing :confused: