S
Sean
I know there has been a lot of questions and answers on this topic, But
I still don't have a clear understanding of how this works in VB6. So
here is what I did to really make sure that the webpage has been
downloaded completely before my program proceeds to click the order
entry confirmation button. But from time to time, when there are many
order entry transations, the dreadful run time error message "Object or
structure not found" shows up and crash my program.
'first checking
'==========
Web3Ready = False
strWaiting = "Web3"
Do While Not Web3Ready '
DoEvents
Loop
'second checking
'=============
Do While Form1.WebBrowser3.Busy
DoEvents
Loop
'third checking
'==========
If IsObject(Form1.WebBrowser3.Document.All.Item("OrderEntry1:_ctl13"))
Then
Form1.WebBrowser3.Document.All.Item("OrderEntry1:_ctl13").Click
End If
I still don't have a clear understanding of how this works in VB6. So
here is what I did to really make sure that the webpage has been
downloaded completely before my program proceeds to click the order
entry confirmation button. But from time to time, when there are many
order entry transations, the dreadful run time error message "Object or
structure not found" shows up and crash my program.
'first checking
'==========
Web3Ready = False
strWaiting = "Web3"
Do While Not Web3Ready '
DoEvents
Loop
'second checking
'=============
Do While Form1.WebBrowser3.Busy
DoEvents
Loop
'third checking
'==========
If IsObject(Form1.WebBrowser3.Document.All.Item("OrderEntry1:_ctl13"))
Then
Form1.WebBrowser3.Document.All.Item("OrderEntry1:_ctl13").Click
End If