Question : Public member 'String' on type 'String' not found

I am trying to load a dataset into an array but I get the error Additional information: Public member 'String' on type 'String' not found.  How can I load a dataset into an array.  thank you
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Dim USstates(50) As MTGCComboBoxItem
        Dim i As Integer = 0
        For i = 0 To Dspadrug1.Tables(0).Rows.Count - 1
            USstates(i) = Dspadrug1.Tables(0).Rows(i).Item("LN").String & " " & Dspadrug1.Tables(0).Rows(i).Item("AWP").String & " " & Dspadrug1.Tables(0).Rows(i).Item("GCN_SEQNO").String
            i = i + 1
        Next
     
 
        comboTest.SelectedIndex = -1
        comboTest.Items.Clear()
        comboTest.LoadingType = MTGCComboBox.CaricamentoCombo.ComboBoxItem
        comboTest.Items.AddRange(USstates)
        MsgBox("Loading completed!", MsgBoxStyle.Information)

Answer : Public member 'String' on type 'String' not found

Simplified approach:

Dim dt As DataTable = Dspadrug1.Tables(0)
USstates(i) = dt.Rows(i)("AWP").ToString() & " " & dt.Rows(i)("GCN_SEQNO").ToString()
Random Solutions  
 
programming4us programming4us