Re: Stock Indexes
Posted: Sat Aug 18, 2012 3:23 am
You have to examine the returned data (either look at the page source with a web browser or set a breakpoint after retrieving data into myRetrieve) to figure out the format. The string just before the percentage is
so to get it you'd want
My guess is that "yfs" is "Yahoo Financial Services".
,id="yfs_p20_^dji">
so to get it you'd want
Code: Select all
if matchtext(myRetrieve, "(?i)yfs_p20_.*" & char 2 to -1 of tStocks & quote & ">([()%0-9,.]+)" , tPercentage) then
answer "found:" & tPercentage
end if