如何总结lisbox中显示的价格(lstPrice) [英] How do I sum up Prices displayed in a lisbox(lstPrice)

查看:49
本文介绍了如何总结lisbox中显示的价格(lstPrice)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个添加按钮来从组合框中选择一个项目以显示在LISTBOX(lstPrice)中...现在我想从列表框中计算所有选定的项目以使用btnCalculate进行总结



例如我想添加R699.99 + R399.99以在txtTotalAmount.text中显示R1099.98的答案

解决方案

见这里:我该如何从列表框中添加小数值? [ ^ ]。 : - )

I've already coded an add button to select an item from a combobox to display in a LISTBOX(lstPrice)...now I want to calculate all the Selected items from the listbox to sum up using a btnCalculate

E.g I want to add R699.99 + R399.99 to display an answer of R1099.98 in a txtTotalAmount.text

解决方案

See here: "How do I add decimal values from a listbox?"[^]. :-)


这篇关于如何总结lisbox中显示的价格(lstPrice)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆