C
Cor Ligthert
Claus,
Than you cannot set it in a single string as you did, however have to do
that to an array something as
\\\
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim myarray(ListBox1.SelectedItems.Count - 1) As String
For i As Integer = 0 To ListBox1.SelectedItems.Count - 1
myarray(i) = DirectCast(ListBox1.SelectedItems(i), _
DataRowView)(0).ToString
Next
End Sub
////
Than you cannot set it in a single string as you did, however have to do
that to an array something as
\\\
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim myarray(ListBox1.SelectedItems.Count - 1) As String
For i As Integer = 0 To ListBox1.SelectedItems.Count - 1
myarray(i) = DirectCast(ListBox1.SelectedItems(i), _
DataRowView)(0).ToString
Next
End Sub
////