Im reading my language database and show it in B4Xtable. in this example the DB table "deutsch"
Now i want to display a third column from another language table to compare both languages. The code column is the same in every table.
Now i dont know how to add the second language, and later to swap both columns individualy with other languages. Any tips how to do that?
B4X:
B4XTable1.AddColumn("Code", B4XTable1.COLUMN_TYPE_TEXT)
ShowLanguage("deutsch")
Sub ShowLanguage(lang As String)
B4XTable1.AddColumn(lang, B4XTable1.COLUMN_TYPE_TEXT)
Dim Data As List
Data.Initialize
Dim rs As ResultSet = DB.GetConnection.ExecQuery("SELECT * FROM "&lang)
Do While rs.NextRow
Dim row(2) As Object
row(0) = rs.GetInt("code")
row(1) = rs.GetString("text")
Data.Add(row)
Loop
rs.Close
B4XTable1.SetData(Data)
End Sub
Now i want to display a third column from another language table to compare both languages. The code column is the same in every table.
Now i dont know how to add the second language, and later to swap both columns individualy with other languages. Any tips how to do that?
Last edited: