troubleshooting Question

vb.net recording variation of change in listview

Avatar of Jason
JasonFlag for Australia asked on
Visual Basic.NET.NET Programming
3 Comments1 Solution91 ViewsLast Modified:
I am looking for assistance with code the displays the change in value of a column in a list view

example this column changes every 3 seconds.  It clears the listview and writes the new values
so the column values would need to be store before clearing the some comparing of stored value to new value

let say these are the start values
column 0    Column 1
1                   0
2                   0
4                   0
2                   0
3                   0
5                   0

after 3 second

column 0              Column 1
1 goes to 4           3
2 goes to 3           1
4 goes to 1           -3
2 goes to 5           3
3 goes to 1           -2
5 goes to 4           -1

the code i am working with is
#Region "RunnerPoolDristrabution"
    Private poollist As New ArrayList
    Public Sub RunnerDistrabution()
        Dim i As Decimal = 0
        Dim ipool As Decimal = 0
        Dim q As Decimal = 0
        Dim count As Integer = 0



        For Each item As ListViewItem In ListView7.Items

            i = (winpool - ipool) / CDec(item.SubItems(1).Text)
            item.SubItems(8).Text = (i + (0.2 * i)).ToString("N2")
            If poollist(count).ToString <> item.SubItems(8).Text Then
                poollist.    ((i + (0.2 * i)).ToString("N2"))
            End If
            ipool = ipool + i
            count += 1
        Next
        For Each item As ListViewItem In ListView7.Items
            q = CDec(item.SubItems(8).Text)
            item.SubItems(9).Text = (i + (0.2 * i) - CDec(q)).ToString("N2")
        Next


    End Sub

#End Region
ASKER CERTIFIED SOLUTION
funwithdotnet

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros