Hi there
I have been using the 'Dim row(3) As Object' notation for a while with tableviews record addition. So I decided to try to use a list instead.
So I..
Obviously it works. Question is, whether is it better to use () As Object than a List and whether there is anything significant in using a List or is just a preference issue to use Object/programming style. Yes defining a List needs the additional steps in initializing it and then calling .Add for each or .AddAll (this is doing the same thing anyway)
I have been using the 'Dim row(3) As Object' notation for a while with tableviews record addition. So I decided to try to use a list instead.
So I..
B4X:
Dim row as List
row.Initialize
row.add("x")
row.add("y")
row.add("z")
tableview.items.add(row)
of rather row.AddAll(array as string("x","y","z"))
Obviously it works. Question is, whether is it better to use () As Object than a List and whether there is anything significant in using a List or is just a preference issue to use Object/programming style. Yes defining a List needs the additional steps in initializing it and then calling .Add for each or .AddAll (this is doing the same thing anyway)