This is a sample code on how you to easy Calculate the sum of a list-view column this is my
way on how to do this,determine the listview count, i used FOR LOOP,the most powerful
loop among the loop structures and it will show you like shown in the image below:
so here we go,the code will look like this:
Dim Adrian, Mrhumble As Integer
'Adrian Holds for the listview count or get
'the listview Rows
For Adrian = 1 To LV1.ListItems.Count
'Holds for the result of calculated fields
Mrhumble = Val(Mrhumble) + Val(LV1.ListItems(Adrian))
Next Adrian
The Hardest Thing to Do is to Do Nothing
Happy Coding ^_^
way on how to do this,determine the listview count, i used FOR LOOP,the most powerful
loop among the loop structures and it will show you like shown in the image below:
so here we go,the code will look like this:
Dim Adrian, Mrhumble As Integer
'Adrian Holds for the listview count or get
'the listview Rows
For Adrian = 1 To LV1.ListItems.Count
'Holds for the result of calculated fields
Mrhumble = Val(Mrhumble) + Val(LV1.ListItems(Adrian))
Next Adrian
The Hardest Thing to Do is to Do Nothing
Happy Coding ^_^
Leave a comment