I am using a List to store data. I manually enter the first row of data and the rest I fill via a loop.
What is happening is the "x" on the first row is stored correctly via the readback on line A but it is erased when I check it on line B
Also the second line of data (first loop through the For loop) is initially stored correctly but when I check it after the second pass, the data seems to have been over-written by the 3 line of data. The check is done on line C. All of these checks is for debugging only and the Line A, B, C is just to point out the area I am using to you guys.
I do not know why the intial line of data (row 0) is being erased (x replaced with "") or why the 1st rowof data in the for loop is being over-written with the 2nd row of data from the loop
B4X:
Dim headerS(NumberOfColumns) As String
Dim allListData As List
Dim config(NumberOfColumns) As String
allListData.Initialize
allListData.Clear
config(0) = "x"
config(1) = "x"
config(2) = "x"
config(3) = "x"
config(4) = "x"
config(5) = "x"
config(6) = "x"
allListData.Add(config)
"line A" ----> config = allListData.Get(0) 'verify data was saved correctly
For i = 1 To 12
tableHeader.Initialize("")
tableHeader = BudgetTable(i).RetrieveHeader
headerSize = headerS.Length
For j = 0 To headerS.Length - 1
L = tableHeader.GetView(j)
headerS(j) = L.Text
Next
allListData.Add(headerS)
"Line B" --------> config = allListData.Get(0) 'verify the first row is still there
Line C -----> config = allListData.Get(1) 'verify second row is fine
Next
What is happening is the "x" on the first row is stored correctly via the readback on line A but it is erased when I check it on line B
Also the second line of data (first loop through the For loop) is initially stored correctly but when I check it after the second pass, the data seems to have been over-written by the 3 line of data. The check is done on line C. All of these checks is for debugging only and the Line A, B, C is just to point out the area I am using to you guys.
I do not know why the intial line of data (row 0) is being erased (x replaced with "") or why the 1st rowof data in the for loop is being over-written with the 2nd row of data from the loop