Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetHtmlElement
#3
Thanks Gintaras. I was going to write a function, but didn't know to make it a member function. I made a modification to include the navigation parameter.
Member function HtmlDoc.FindHtmlElement
Code:
Copy      Help
function'MSHTML.IHTMLElement $text [flags] [$tag] [$containerTag] [VARIANT'containerNameOrIndex] [navig] [&index]
;;flags: 0 exact, 1 contains, 2 wildcard, 3 regex, 4 in HTML
Then, at the end,
Member function HtmlDoc.FindHtmlElement
Code:
Copy      Help
if (navig)
,el=this.GetHtmlElement("" el.sourceIndex+navig)
MSHTML.IHTMLElement el2=el
ret el2
err+ end _error
and to call it:
Macro Test HTML
Code:
Copy      Help
MSHTML.IHTMLElement el=hd.FindHtmlElement("Market Cap (intraday)*:" 2 "td" "" 0 +3)
That works. Thanks so much!


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)