Dim row() As Object = TableRow.Get(5) 'update the sixth item
row(0) = 111
row(1) = "asdasd"
Set the all list with the last value
i'm tring to set the b4xTable from Map derived from a json
Sub ShowResults (DataMap As Map)
Dim ResultMap As Map
Dim ResultsList As List
Dim TableRow(2) As Object
Dim Ind As Int
Dim TableList As List
ResultsList = DataMap.Get("results")
Log ("ResultsList=" & ResultsList)
TableList.Initialize
For Ind = 0 To ResultsList.Size - 1
ResultMap = ResultsList.Get(Ind)
TableRow(0) = Ind + 1
TableRow(1) = ResultMap.Get("name")
TableList.Add(TableRow)
Next
TableResults.SetData(TableList)
End Sub
TableList=(ArrayList) [[Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124, [Ljava.lang.Object;@1634124]