Sam Hobbs
Mar 3rd, 2006, 10:44 PM
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". Dim HTML As MSHTML.IHTMLDocument
Set HTML = New MSHTML.HTMLDocument
Text1 = TypeName(HTML.documentElement.childNodes) Dim HTML As MSHTML.IHTMLDocument
Dim ChildrenCollection As DispDOMChildrenCollection
Set HTML = New MSHTML.HTMLDocument
' "Argument not optional" from the following
ChildrenCollection = HTML.documentElement.childNodesCan 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".
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". Dim HTML As MSHTML.IHTMLDocument
Set HTML = New MSHTML.HTMLDocument
Text1 = TypeName(HTML.documentElement.childNodes) Dim HTML As MSHTML.IHTMLDocument
Dim ChildrenCollection As DispDOMChildrenCollection
Set HTML = New MSHTML.HTMLDocument
' "Argument not optional" from the following
ChildrenCollection = HTML.documentElement.childNodesCan 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".