B4J Question TableView - get cell contents

atiaust

Active Member
Licensed User
Longtime User
Hi All,

I have a tableView that has 6 rows and each row has 4 cells (columns).

I want to use tableView.Items.size to read trough the items in the table view and check the contents of each cells in a column.

B4X:
Dim tableSize As Int = tableView.Items.Size
    For i = 0 To tableSize -1
        Dim s As String = tableView.Items.Get(i)
        Log("s = "& s)
    Next
The log shows:
s = [Ljava.lang.String;@c8c3cd
s = [Ljava.lang.String;@1b06b72
s = [Ljava.lang.String;@96bd77
etc..

Anyone know how to get the contents of the individual cells?

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
Dim values() As String = tableView.Items.Get(i)
for each s in values
   log(s)
next
 
Upvote 0
Top