Well, Index out of Range, means you are trying to access an array element that doesn't exist. If your array had 10 elements, and you tried to access the 11th element, you'd get this error. Also, if your array doesn't exist yet (because it's not been created) and you try and access it, you'll get the same error. Usually this means you ask how long the array is, get told zero, and try to access element zero. Further, the error message will include the exact line of code where the problem happens, so tracking down which array is causing the problems should be easy.
↧