Re: Weird error

new topic     » goto parent     » topic index » view thread      » older message » newer message

>
> Maybe it's just me, but I can't understand this error I'm getting:
>
> Subscript value 0 is out of bounds, reading from a length 12 sequence
>
> I'm getting it on this line:
>
> if y1>0 and y1<12 and x>0 then a=barrierow[y1][x+1]
>
> since y1 and x are both >0 I for the read to take place I don't get why
> it's crashing with the 0 out of bounds.  Barrierow is an image that's
> about 12x150.


What are the actual values of y1 and x?

Thanks

David Gay
http://www.interlog.com/~moggie/Euphoria
"A Beginner's Guide To Euphoria"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu