您的位置:程序门 -> vb -> 网络编程



获取网页中的数据


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


获取网页中的数据[无满意答案结贴,结贴人:chenxing0536]
发表于:2007-10-24 17:06:36 楼主
怎样用vb获取网页中的数据存入到本地数据库中?
        dim   doc1   as   ihtmldocument2
        set   doc1   =   webbrowser1.document
        dim   tables   as   ihtmlelementcollection
        set   tables   =   doc1.all.tags("table")
        dim   qu   as   ihtmlelement
      <font   color="red">   set   qu   =   tables.item(1,   1).tags("td").item(2,   2) </font>
        text1.text   =   text1.text   +   qu.innertext
上面倒数第二行出错
发表于:2007-10-24 17:09:091楼 得分:0
set   qu   =   tables.item(1,   1).tags("td").item(2,   2)  
行出错了!提示“对象不支持属性或方法”
发表于:2007-10-25 08:03:572楼 得分:0
set   qu   =   tables.item(1,   1).tags("td").item(2,   2)     行出错了!提示“对象不支持属性或方法”
发表于:2007-10-26 10:58:373楼 得分:0
set   qu   =   tables.item(1,   1).all.tags("td").item(2,   2)
解决了


快速检索

最新资讯
热门点击