I've been beating my head on this, and I'm sure it's stupid. As per this thread I've been trying to set a checkbox.
is the result. In case you can't make out the code:
I've set the type in SQLLite as INTEGER, but it doesn't work as NUMERIC or TEXT, predictably since I don't think types are even necessary when declaring fields in SQLlite.
This is such a silly little issue, but it's obviously driving me up the wall.
is the result. In case you can't make out the code:
B4X:
Dim Settings As Map
Settings = dbutils.ExecuteMap(SQL,"Select * from Settings",Null)
edtUser.Text = Settings.Get("username")
edtPassword.Text= Settings.Get("password")
edtMAC.Text=Settings.Get("mac")
If Settings.Get("bluetooth") = 1 Then
chkBluetooth.Checked= True
Else
chkBluetooth.Checked= False
End If
I've set the type in SQLLite as INTEGER, but it doesn't work as NUMERIC or TEXT, predictably since I don't think types are even necessary when declaring fields in SQLlite.
This is such a silly little issue, but it's obviously driving me up the wall.