Sub DBload ' load the alternative names db
'need to clear the list
lvdb.Clear
cursor1 = SQL1.ExecQuery("SELECT * FROM name")
For i = 0 To cursor1.RowCount - 1
cursor1.Position = i
lvdb.AddSingleLine(cursor1.GetString("ID")& " : " &cursor1.GetString("name")& " = " &cursor1.GetString("altname"))
'this works and loads up the data into the listview
lvdb.SingleLineLayout.Label.TextSize = 15
lvdb.SingleLineLayout.ItemHeight = 40
lvdb.SingleLineLayout.label.TextColor = Colors.Black
lvdb.ScrollingBackgroundColor =Colors.Transparent
'map here not working, it returns just the Key: mapname , Value: mapaltname
'I suspect its just overwriting the same data field yet its is looping with the main loop the cursor1.getString("name") should work as it does above.
Dim mapname, mapaltname As String
mapname=cursor1.getString("name")
mapaltname=cursor1.getString("altname")
allmapnames.Put("mapname", "mapaltname")
Log("mapname " & mapname)
Log("mapaltname " & mapaltname)
Next
End Sub