What's the easiest way, in B4J, to refer to an element in a nested list?
So specifically, if you had
List1.AddAll( Array As String( "one", "two", "four" ) )
List2.AddAll( Array As String( "seventeen", "thirteen", "five" ) )
List3.AddAll( Array As String( "hundred", "eight", "zero" ) )
Listparent.Add( List1 )
Listparent.Add( List2 )
Listparent.Add( List3 )
, and you wanted to obtain the "thirteen" at ( 1, 1 ),
is there a simple way to do that, with B4J syntax?
Also, if you wanted to replace the element at (1,1), what is the simplest way to to that?
Essentially, I've been just Dimming a temporary sublist on the fly, setting it to the second child list and changing it, and then replacing it back into the parent. It's more complicated than that, but something along those lines. But there's got to be a simpler way.
So specifically, if you had
List1.AddAll( Array As String( "one", "two", "four" ) )
List2.AddAll( Array As String( "seventeen", "thirteen", "five" ) )
List3.AddAll( Array As String( "hundred", "eight", "zero" ) )
Listparent.Add( List1 )
Listparent.Add( List2 )
Listparent.Add( List3 )
, and you wanted to obtain the "thirteen" at ( 1, 1 ),
is there a simple way to do that, with B4J syntax?
Also, if you wanted to replace the element at (1,1), what is the simplest way to to that?
Essentially, I've been just Dimming a temporary sublist on the fly, setting it to the second child list and changing it, and then replacing it back into the parent. It's more complicated than that, but something along those lines. But there's got to be a simpler way.
Last edited: