Results 1 to 1 of 1

Thread: DispDOMChildrenCollection

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Location
    California
    Posts
    39

    DispDOMChildrenCollection

    What is "DispDOMChildrenCollection"? It seems to be a function, but whatever it is, I can't use it the way I need to. I probably only need a DOMChildrenCollection object.

    If this forum is not the most relevant for this question, then you can tell me which is.

    The following is simplified sample code. In my full version, I do load a document into HTML. In the first sample below, the result of TypeName is DispDOMChildrenCollection. In the second sample below, I get the compile error "Argument not optional".
    VB Code:
    1. Dim HTML As MSHTML.IHTMLDocument
    2. Set HTML = New MSHTML.HTMLDocument
    3. Text1 = TypeName(HTML.documentElement.childNodes)
    VB Code:
    1. Dim HTML As MSHTML.IHTMLDocument
    2.     Dim ChildrenCollection As DispDOMChildrenCollection
    3. Set HTML = New MSHTML.HTMLDocument
    4. ' "Argument not optional" from the following
    5. ChildrenCollection = HTML.documentElement.childNodes
    Can I get at least a hint as to what DispDOMChildrenCollection is and where to look for documentation of it?

    Also, if I use a Set for ChildrenCollection, I get "Type Mismatch".
    Last edited by Sam Hobbs; Mar 3rd, 2006 at 11:49 PM.

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