07-29-2010, 08:31 PM
Gintaras,
Any ideas to make this better?
Member function str.Html
Member function str.Html
Definitely works for me in a lot of cases where I use to put a lot of code!
Any ideas to make this better?
Member function str.Html
Member function str.Html
function str'Html str'Element str'Attibute [int'Index] [str&Results]
;EXAMPLE
;str s
;IntGetFile "http://www.google.com" s
;str Results
;str x.Html(s "a" "href" 5 Results)
;
;out x
;out "------"
;out Results
HtmlDoc d.InitFromText(Html)
ARRAY(MSHTML.IHTMLElement) aHtml
d.GetHtmlElements(aHtml Element)
for _i 0 aHtml.len
,Results+aHtml[_i].getAttribute(Attibute 2)
,if !(_i=aHtml.len-1)
,,Results+"[]"
this=aHtml[Index].getAttribute(Attibute 2);err ret 1