By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,062 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

Add the values of a listbox

P: 8
Hi all. Lets just say I have a listbox of full of values. Can someone help me write some code to add all the numerical values of the listbox? Thanks
Dec 14 '07 #1
Share this Question
Share on Google+
5 Replies


debasisdas
Expert 5K+
P: 8,127
What do you mean by all the numerical values of the listbox .
What exactly are you trying to do ?
Dec 14 '07 #2

P: 8
What do you mean by all the numerical values of the listbox .
What exactly are you trying to do ?
Thankyou for your reply. I have a listbox with numerical values that the user enters. I then want to find the total sum of all the values in the listbox.

Thanks again
Dec 14 '07 #3

QVeen72
Expert 100+
P: 1,445
Hi,

Loop from 0 to (List1.ListCount-1) and write the code to add..


Regards
Veena
Dec 14 '07 #4

P: 8
Hi,

Loop from 0 to (List1.ListCount-1) and write the code to add..


Regards
Veena
Can you please give me an example? I am getting confused.. Thanks
Dec 14 '07 #5

debasisdas
Expert 5K+
P: 8,127
Can you please give me an example? I am getting confused.. Thanks
There is nothing to get confused. Retrive all the values using the listindex peoperty . You need to add the values in a loop. You will not learn anything till you try yourself.

Kindly post what you have tried so far for further discussion on the topic.
Dec 14 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.