总和值的问题 [英] problem with sum the value
本文介绍了总和值的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将所有显示listbox1中文件大小的值相加?
给我一些例子。
谢谢。
解决方案
Dim 总 as Int
对于 l_index 作为 整数 = 0 listbox1.Items.Count - 1
total = total + Convert.toInt32(listbox1.Items(l_index))
Next
How I can sum all value that shows the size of the files in listbox1?
Give me some examples.
Thank You.
解决方案
Dim total as Int For l_index As Integer = 0 To listbox1.Items.Count - 1 total = total + Convert.toInt32(listbox1.Items(l_index)) Next
这篇关于总和值的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文