can u pass an idea... is this is possible to plus all that items(Integer) that are in listbox or listview...
e.g a list box have 4 items...
1)-20
2)-40
3)-80
4)-100
is this possible to plus these items,??? items also can b infinite, depends upon user...i dont have any idea, and could not find thing regarding this on internet
Jaseem Ahmed
2
Junior Poster
Recommended Answers
Jump to Postis this is possible to plus all that items(Integer) that are in listbox or listview...
Yes, you can.
For listbox :
Dim i, result As Integer For i = 0 To List1.ListCount result = result + List1.List(i) Next i MsgBox result
For Listview :
Jump to PostYou're Welcome.. :)
Don't forget to mark this thread as solved.Happy Coding.
All 8 Replies
Jx_Man
987
Nearly a Senior Poster
Featured Poster
Jaseem Ahmed
2
Junior Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
AndreRet
526
Senior Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
AndreRet
526
Senior Poster
Jaseem Ahmed
2
Junior Poster
AndreRet
526
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.