Am trying to get the “id” column from tableName WHERE name = EditText1.Text, and put “id ” into EditText2
I have tried:
Pls link me to a post that I may have missed or an example.
Thanks in advance
I have tried:
B4X:
Sub Button1_Click
'Cursor1 = SQL1.ExecQuery("SELECT id FROM tableName WHERE name = 'EditText1.Text'")
'Cursor1 = SQL1.ExecQuery("SELECT id FROM tableName WHERE name Like EditText1.Text") 'No column = EditText1.Text
Cursor1 = SQL1.ExecQuery("SELECT id FROM tableName WHERE name = name") ' HOW TO GET "id"
Log("AAAA " & Cursor1)
Log("BBBB " & $"${Cursor1}"$)
Log("CCCC " & EditText1.Text) ' only a shadow of EditText1.Text
Log("DDDD " & EditText2.Text)
' Log("EEEE " & SQL1.id) ' Error = unknown member:id
' Log("FFFF " & SQL1.tableName.id) ' Error = unknown member:tableName
' Log("GGGG " & id)
' Log("HHHH " & SQL1.tableName.id)
End Sub
Thanks in advance