I see what Austin is saying and it helped me debug some code. If you allocate an array with 50 occurrences, you cannot address occurrence 50 because there is no occurrence 50. The occurrences are 0 to 49.
Coming from a mainframe COBOL world, this tip really helped me clear up an OutOfScope exception. Thanks!