list boxes

jofoxy2000

Newcomer
Joined
Dec 4, 2003
Messages
3
help getting string value numbers from two lstboxes and adding them both, to get an total result shown in a label label.

lstStart lstfinish
0.00 6.30
2.00 2.33
2.00 2.63

total = (answer here)

e.g 0.00+ 6.30 = 6.30(answer) :confused:
im using VB.NET 2003
 
Last edited:
dim dblAnswer as double
dblAnswer = convert.todouble(lstboxstart.items.indexof(INTEGER)) + _
convert.todouble(lstboxFinish.items.indexof(INTEGER))

if you need the dblanswer to show up in a text box then just do this
textbox1.text = dblanswer.tostring
 
Back
Top