I am trying to create an app that is able to generate a number of lists as required in a for next loop.
I should have 10 lists each with 5 lines as follows:
Count=1
Count=2
Count=3
Count=4
Count=5
But for some reason I can't seem to get it to work.
Any ideas what I'm doing wrong?
B4X:
Private Races() As List
Races().Initialize()
For a = 1 to 10
For b = 1 to 5
Races(a).Add("Count=" & b)
Next
Next
I should have 10 lists each with 5 lines as follows:
Count=1
Count=2
Count=3
Count=4
Count=5
But for some reason I can't seem to get it to work.
Any ideas what I'm doing wrong?