|
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.
|