How To Calculate the Listview Coloumns

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 ^_^
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Furl
  • Reddit
  • Spurl
  • StumbleUpon
  • Technorati

Leave a comment

Copyright @ Codes-47.Blogspot.Com. Powered by Blogger.