04-07-2008, 01:47 AM
QM Assistant Wrote:
The 10-Day Forecast, complete.
Macro ( 10 Day Forecast ) Trigger ( @11 )
str s message zipcode url
zipcode="48183" ;;<----------Enter your zipcode
url.from("http://www.weather.com/weather/tenday/" zipcode)
IntGetFile url s
ARRAY(str) a
HtmlTableToArray s 12 a 0 2
int i nTDinRow=8
for i 0 a.len nTDinRow
,message.formata("%s %s %s %s %s %s[]" a[i+1] "[]Hi/Lo:" a[i+5] "[]" a[i+2] "[]-----------------------")
mes message "10-Day Forecast" "sa"
Any idea why I get this error now?
Quote:Error (RT) in 10 Day Forecast: invalid indexThis shows up right before:
Quote:,message.formata("%s %s %s %s %s %s[]" a[i+1] "[]Hi/Lo:" a[i+5] "[]" a[i+2] "[]-----------------------")
Taking on Quick Macros one day at a time