Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42308

MsOf10 Automation error accessing childnodes

$
0
0
I first create an InternetExplorer and then I extract an object. I was extracting text from it using:

myText=obj.childnodes(0).innertext text

However, I get an "Automation error": -2147352319 (80020101)

I can't figure out why. I can actually access it using a loop:

For each child in obj.Children
If child.className="my class name" Then myText=child.innertext
Next child

This is indeed a solution but I don't want to introduce loops every time I want to access child nodes... Thought? :confused:

Thanks,

Samuel

Viewing all articles
Browse latest Browse all 42308

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>