Hi, I have created a db table called diction, but when I try to query it using the maps option, I keep getting NULL values for some reason?
I know there is data in there as I have copied the db to my PC to test it.
The 'lang' variable displays as expected, so I can't possibly see an error in the simple SQL query, but getting the data into usable list is the problem. I need to retrieve a word from a list with an integer and a string based on the integer value.
Am I missing something totally obvious?
Malky
I know there is data in there as I have copied the db to my PC to test it.
B4X:
Sub PopulateDiction(lang As String)
Dim Cursor1 As Cursor
Cursor1 = SQL1.ExecQuery("Select id," & lang & " from diction")
For i = 0 To Cursor1.RowCount - 1
Cursor1.Position = i
Dim m As Map
m.initialize
m.Put("id",m.Get(i))
m.Put("lang",m.Get(lang))
DictionList.Put(i,m.Get("lang"))
Next
End Sub
Am I missing something totally obvious?
Malky