Hi All,
I'm using VFP9 to automate IE to extract text from a web page.
I'm getting the error "OLE error code 0x80070005: Access is denied" in a rather inconsistent manner when trying to read different items.
Example:
loSections = loIE.Document.getElementsByClassName("someclass")
loSection = loSections.Item(0)
loNavs = loSection.getElementsByTagName("NAV")
loNav = loNavs.Item[0]
loLists = loNav.getElementsByTagName("LI") ==> ALL OK SO FAR
FOR EACH loList IN loLists ==> ERROR (but not always)
It may get past that point and fail on the next one...
loAnchor = loList.getElementsByTagName("A").Item(0)
CASE EMPTY(loList.ClassName) AND NOT EMPTY(loAnchor.href)
lcListName = STRTRAN(loAnchor.InnerHTML,"&","&") ==> NO ERROR
lcURL = loAnchor.href ==> ERROR (but not always)
Any ideas what I should be looking for?
Thanks.
Carl Chambers
Cardol Data Systems