--- In [email protected], Brother Gabriel-Marie <brgabr...@...> wrote:
>
> Hello all! Plug this into your runbox and see if you can get any
> results past July. I've tried everything; what am I doing wront?
> win.debug(.t...@monthconvertor("August", 0))


If you debug m[0] just before this line:
 
for (local i=0; i<m[0].length; i++)
 
you learn that m[0] is the string "january", which has a length of 7! So your 
loop is over prior to i (with which you index rows) being equal to 7 where 
August is located.

Instead of i<m[0].length, you could use i<m.length/3

You could also add a break command after setting the result variable in that 
loop, so that it quits the loop after locating the answer.

Regards,
Sheri


Reply via email to