Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find HTML based on part of text
#4
Just one more question:

How can run or modify this url as a string?

I tried:

str s
HtmlDoc d
d.SetOptions(2)
d.InitFromWeb("http://www.quickmacros.com/")
ARRAY(MSHTML.IHTMLElement) a; int i
d.GetLinks(a)
str url
for i 0 a.len
,s=a[i].getAttribute("href" 0)
,;out s
,if(matchw(s "*foru*")) out s

run s

or

str stext.from("site" s )


But the string s is not the URL which QM is showing in "out".


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)