CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2009
    Posts
    1

    problem with IE document.all

    I'm trying to parse a html page containg tables, still document.all.tags("table") does not return any. What can be the reason

    the code below:

    Set IE = CreateObject("InternetExplorer.Application")
    ....
    i=0
    For Each table In IE.Document.getElementsByTagName("table")
    i=i+1
    Next table
    MsgBox i

    shows a message box with the text: 0

    the page is the result of a search engine built in perl, containing the result as table

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: problem with IE document.all

    Then, it didn't even execute, otherwise it would have been 1
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured