Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a list of prices(R199.99, R999.99, etc) chosen from a combobox that displays the selected prices into a LISTBOX...now I want to sum up all those prices using a btnCalculate and shows the anwer in a txtAmount.text

I've used the following code so far:

Dim Amount as Decimal
If Amount = lstPrice.Items.Count then
txtAmount.text = "R" + (Convert.Tostring(Amount))
End If


Please Help
Posted
Updated 9-Sep-15 9:49am
v2
Comments
Maciej Los 9-Sep-15 15:33pm    
Do not repost!!![^]!!!

 
Share this answer
 
You already got some answers. Please see: How do I add decimal values from a listbox?[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900