Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) Dim vDoc, vtag As Object
Set xobj = pDisp
Set vDoc = xobj.Document For i = 0 To vDoc.All.length - 1
End SubFor i = 0 To vDoc.All.length - 1
这行在xp中运行正常,但在win98运行就显示说"对象变量或with块没定义"怎么解决??
Set xobj = pDisp
Set vDoc = xobj.Document For i = 0 To vDoc.All.length - 1
End SubFor i = 0 To vDoc.All.length - 1
这行在xp中运行正常,但在win98运行就显示说"对象变量或with块没定义"怎么解决??
^^^^ 使用前判断 is nothingnext 跑哪去了
怎么判断is nothing?
Set xobj = pDisp
Set vDoc = xobj.Document
if vDoc is nothing then
end if