
Untitled
By: a guest on
Apr 26th, 2012 | syntax:
None | size: 0.74 KB | hits: 12 | expires: Never
VB.net Array throwing an exception
For Each element As Song In modFiles.getSongs()
Dim col(2) As String
Dim item As ListViewItem
col(0) = element.SongTitle
col(1) = element.PlayTime
col(2) = element.SongFilename
item = New ListViewItem(col)
setList.Items.Add(item)
Next
col(0) = element.SongTitle
col(1) = element.PlayTime
col(2) = element.SongFilename
For Each element As Song In modFiles.getSongs()
If element IsNot Nothing Then
Dim col(2) As String
Dim item As ListViewItem
col(0) = element.SongTitle
col(1) = element.PlayTime
col(2) = element.SongFilename
item = New ListViewItem(col)
setList.Items.Add(item)
End If
Next
Dim col(3) As String