Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Add numbers from a list to textbox

hi all
I am trying to add numbers from a listbox to text in vb6
i have a list and numbers in it
and a textbox
i would like the sum of what's inside the list to appear inside the textbox
can ou help me with this??
thanx in advance
weso.n :)
[292 byte] By [wesoonline] at [2007-11-11 10:26:19]
# 1 Re: Add numbers from a list to textbox
Dim I As Integer
Dim sum As Long

For I = 0 To lstBox.ListCount - 1
sum = sum + Val(lstBox.List(I))
Next

txtBox.Text = sum
Phil Weber at 2007-11-11 17:22:34 >
# 2 Re: Add numbers from a list to textbox
thaaaaaaaaaaaaaaaaanx maaaan

you are the best :D

may god pless you
wesoonline at 2007-11-11 17:23:45 >