Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.74 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. VB.net Array throwing an exception
  2. For Each element As Song In modFiles.getSongs()
  3.     Dim col(2) As String
  4.     Dim item As ListViewItem
  5.     col(0) = element.SongTitle
  6.     col(1) = element.PlayTime
  7.     col(2) = element.SongFilename
  8.     item = New ListViewItem(col)
  9.     setList.Items.Add(item)
  10. Next
  11.        
  12. col(0) = element.SongTitle
  13. col(1) = element.PlayTime
  14. col(2) = element.SongFilename
  15.        
  16. For Each element As Song In modFiles.getSongs()
  17.     If element IsNot Nothing Then
  18.         Dim col(2) As String
  19.         Dim item As ListViewItem
  20.         col(0) = element.SongTitle
  21.         col(1) = element.PlayTime
  22.         col(2) = element.SongFilename
  23.         item = New ListViewItem(col)
  24.         setList.Items.Add(item)
  25.     End If
  26. Next
  27.        
  28. Dim col(3) As String