So the problem is that no matter what Cheat_enabled is set to in the database this always returns false.
Using cmd As New SQLiteCommand("SELECT Cheat_Enabled FROM Cheat WHERE ID = 1", conn)
'MsgBox(cmd.ExecuteScalar)
Return cmd.ExecuteScalar
End Using
I want it to return the value that is stored in the database, which should be true. Any help would be appreciated. Text based values and Int based values return as expected, but not boolean values, they always return false. I know the sql statement is correct, as I have tried it in sqliteadmin, and it returns correctly. The Idea, is that it will set a checkbox state based upon the state in the database, but I need to retrieve the state from the database which is my problem. This is just a piece from a function, that everything else is working great in.
Aucun commentaire:
Enregistrer un commentaire