之前原来的代码Dim idx = 1
For Each dl As object In web.Document.GetElementsByTagName("img")
Dim url = dl.GetAttribute("src")
If url > "" Then
Dim c As String = "图片" & idx
If Tables("house").Cols.Contains(c) Then
dr(c) = url
End If
idx += 1
End If
Next
是没有问题的,但升级后出现
.NET Framework 版本:2.0.50727.8762
Foxtable 版本:2018.3.3.1
错误所在事件:窗口,房源,Button5,Click
详细错误信息:
索引和计数必须引用该字符串内的位置。
参数名: count
错误提示,但是用下面的代码测试起又没有问题
For Each dl As object In web.Document.GetElementsByTagName("img")
Dim url = dl.GetAttribute("src")
If url > "" Then
msgbox(url)
End If
Next
请问有问题是出在那呢