Only error I really see is that you try to initialize Items[5] with 5 values. After the array is declared it has 5 elements that range over Items[0] to Items[4] so Item[5] is actually outside the array. Also, you can only assign a single value to a single element.