Error 150: Index out of range The index of an array variable declaration specified an invalid number of elements. The range of the index type of an array determines the number of elements in the array. Using a LongInt subrange as an array index will cause this error. Each array must fit within a single 64K segment. An array declared with this index range would exceed the maximum size for an array, no matter what type of element.