I found this from a Google search and I need the VB.NET equivalent to Martin Liss' codeI haveCode:Dim lngIndex As Long Dim lngTot As Long For lngIndex = 1 To lv.ListItems.Count lngTot = lngTot + lv.ListItems(lngIndex).SubItems(1) Next MsgBox lngTotBut, I'm getting the errorvb.net Code:
Dim intRptTotal As Integer = 0 For i As Integer = 1 To ListView1.Items.Count intRptTotal = intRptTotal + CInt(ListView1.Items(i).SubItems(1)) NextBasically, I need to total up a number column in a ListView.Originally Posted by Option Strict




Reply With Quote