View Single Post
Old Oct 22nd, 2007, 12:07 AM   #5
garyelmer
Newbie
 
Join Date: Oct 2007
Posts: 8
Rep Power: 0 garyelmer is on a distinguished road
Re: Adding contents of a list box

Okay, I did that and here is what I have so far . . .

intListSize = lstCosts.Items.Count - 1


For intCount = 0 To intListSize
decTotalCosts += lstCosts.Items(intCount)
intCount += 1

Next intCount

lblTotalCost.Text = decTotalCosts


What it is doing now is adding item 0, 2, 4 and so on.
It is skipping 1, 3, 5 etc.
garyelmer is offline   Reply With Quote