B4J Question Tableview extracting text from a column

Discussion in 'B4J Questions' started by tsteward, Jan 22, 2015.

  1. tsteward

    tsteward Active Member Licensed User

    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
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Something like:
    Code:
    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
     
    tsteward likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice