ID:171186
 
runtime error: list index out of bounds

What does that mean?

I would like to try to fix the error myself, I would just like to know what that means so I can rectify the problem, as far as I can see the code is fine.

Thanks in advance,

Farkas

P.S. Can some one help me on this please... [link]
It means that you're attempting to access a list index that doesn't exist.

For example, you try to access somelist[9] when somelist only has 8 items in it. It can also occur if you try so access somelist[0] or any other value that's less than 1.
In response to Jon88
Another place this error occurs is when you use pick() on an empty list.

[edit]
Considering how confusing this runtime error is for people when it occurs in pick(), I just made a change so it will report "pick() from empty list" as the runtime error instead.

Lummox JR
In response to Lummox JR
Thanks for the replys, however, how would i go about...
names in a list, they are picked, when they are, they are removed. What i want is if when there are no names in the list, move onto another proc.

i have
var/R = pick(list)
if(!R)
newproc()
else
//do stuff
is there a way to do this? this is returning the runtime error above.

I dont want any code posting, i want to be pointed in the right direction, something to look up, something to think about.

Please help if you can

Thanks,
Farkas
In response to Farkas
Instead of pick(), use for().