Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Current temperature
#15
QM Assistant Wrote:
The 10-Day Forecast, complete.


Macro ( 10 Day Forecast ) Trigger ( @11 )
Code:
Copy      Help
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 index
This 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


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)