JackSparrow
Member
Hi
I am hoping someone can help with what I thought was a simple problem,and it may very well be but I can't seem to solve it
I have a sql db record with many fields, some of which are the same name but with a number on the end, e.g Field1, Field2 etc
I can read all the fields ok and the values show correctly when I log them but I cannot add them to the table
My coding is simply
After a couple of iterations I get the log message
I forgot to mention that a result is shown but it's just the last number printed on every line. How do i get each field on a seperate line?
I am hoping someone can help with what I thought was a simple problem,and it may very well be but I can't seem to solve it
I have a sql db record with many fields, some of which are the same name but with a number on the end, e.g Field1, Field2 etc
I can read all the fields ok and the values show correctly when I log them but I cannot add them to the table
My coding is simply
B4X:
Dim row(2) As Object
For x = 1 To 4
Dim Col As String="Field" & x
Dim Score1 As Int =B4XPages.MainPage.rst.Getstring(Col)
'' Dim Score2 As Int =B4XPages.MainPage.rst.Getstring(Col)
row(0) =Score1
'' row(1) =Score2
Log(Score1)
Data.Add(row)
Next
I forgot to mention that a result is shown but it's just the last number printed on every line. How do i get each field on a seperate line?