Does anyone know how to declare the "oHTML" object in the following code so the I won't have to use late binding?
Dim oHTML
strURL = "http://finance.yahoo.com/q/bc?s=ABT+Basic+Chart"
Dim s As String = RequestWebData(strURL, strSymbol)
oHTML = CreateObject("htmlfile") 'late binding
oHTML.Open()
oHTML.Write(s)
oHTML.Close()
This code is part of a web scraping project.
Since the oHTML object is late-bound the OPTION STRICT ON compiler directive complains and Intellisense features are not available. Intellisense would be especially nice when working with the Document Object Model (e.g., "oHTML.all.tags("TABLES").rows(0).cells(0).innerText").
I've poked around VBForums and other VB.Net websites, but haven't found anything to help.
Appreciate any advice on this question.
Dim oHTML
strURL = "http://finance.yahoo.com/q/bc?s=ABT+Basic+Chart"
Dim s As String = RequestWebData(strURL, strSymbol)
oHTML = CreateObject("htmlfile") 'late binding
oHTML.Open()
oHTML.Write(s)
oHTML.Close()
This code is part of a web scraping project.
Since the oHTML object is late-bound the OPTION STRICT ON compiler directive complains and Intellisense features are not available. Intellisense would be especially nice when working with the Document Object Model (e.g., "oHTML.all.tags("TABLES").rows(0).cells(0).innerText").
I've poked around VBForums and other VB.Net websites, but haven't found anything to help.
Appreciate any advice on this question.