I'm attempting to import data from one `ListBox` to another whilst eliminating commas, quotations and other unnecessary parts of the text. 

For some reason, when I try to run it and attempt to transfer the data over I get the error:

> 
> Index was outside bounds of array.
> 
> 
> 

Here is my code:

```
Private Sub LoadButton_Click(sender As Object, e As EventArgs) Handles LoadButton.Click

    'check contents of list box
    If RawDataListBox.Items.Count = 0 Then
        MessageBox.Show("No rows in list box")
        Exit Sub
    End If

    ' split the data and store it in a structure
    Try

        Dim counterInteger As Integer = 1
        Dim AbsDataStructure(RawDataListBox.Items.Count) As absdata
        Dim FinalDataOutputString As String

        While counterInteger < RawDataListBox.Items.Count
            'read one line/row into a string
            Dim AbsSingleLineString As String = RawDataListBox.Items(counterInteger).ToString
            'Split string by comma
            Dim AbsDataString As String() = AbsSingleLineString.Split(","c) 'need to also get rid of the quotation marks on data

            With AbsDataStructure(counterInteger)
                .LocationNameString = AbsDataString(0)
                .TypeString = AbsDataString(1)
                .StateString = AbsDataString(2)
                .MeasureString = AbsDataString(3)
                .LocalGovernmentAreaString = AbsDataString(4)
                .TotalMalesInteger = Integer.Parse(AbsDataString(5))
                .TotalFemalesInteger = Integer.Parse(AbsDataString(6))
                .FrequencyString = AbsDataString(7)
                .PercentMalesDouble = Double.Parse(AbsDataString(8))
                .PercentFemalesDouble = Double.Parse(AbsDataString(9))
                .TotalMalesAndFemalesInteger = .TotalMalesInteger + .TotalFemalesInteger
            End With

            'BELOW BLOCK OF CODE DOESNT WORK FOR SOME REASON
            FinalDataOutputString = "Cities and Regions: " + AbsDataStructure(counterInteger).LocationNameString + ","
            FinalDataOutputString += "Type: " + AbsDataStructure(counterInteger).TypeString + ","
            FinalDataOutputString += "State: " + AbsDataStructure(counterInteger).StateString + ","
            FinalDataOutputString += "Females: " + AbsDataStructure(counterInteger).TotalFemalesInteger.ToString + ","
            FinalDataOutputString += "Males: " + AbsDataStructure(counterInteger).TotalMalesInteger.ToString + ","
            FinalDataOutputString += "%Female: " + AbsDataStructure(counterInteger).PercentFemalesDouble.ToString + ","
            FinalDataOutputString += "%Male: " + AbsDataStructure(counterInteger).PercentMalesDouble.ToString + ","
            FinalDataOutputString += "Total Males and Females: " + AbsDataStructure(counterInteger).TotalMalesAndFemalesInteger.ToString
            'add to line in listbox
            FinalDataListBox.Items.Add(FinalDataOutputString)

            counterInteger += 1
            'when counterinteger is 10 i get inputstring was not in correct format
        End While
    Catch ex As Exception
        MessageBox.Show(ex.Message)
    End Try
End Sub

```