tsteward Well-Known Member Licensed User Longtime User Jan 22, 2015 #1 I have a tableview and would like to total the figures in column 4 and display in a label below the table. Each cell of the table contains a label to allow users to be able to change values. Not sure how to cycle through each row extracting the value from column 4 Thank you
I have a tableview and would like to total the figures in column 4 and display in a label below the table. Each cell of the table contains a label to allow users to be able to change values. Not sure how to cycle through each row extracting the value from column 4 Thank you
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2015 #2 Something like: Code: Copy Dim total As Int For Each row() As Object in TableView1.Items Dim lbl As Label = row(3) if IsNumber(lbl.Text) Then total = total + lbl.Text Next Upvote 0
Something like: Code: Copy Dim total As Int For Each row() As Object in TableView1.Items Dim lbl As Label = row(3) if IsNumber(lbl.Text) Then total = total + lbl.Text Next