I cannot see what is wrong here can someone help please.
I had a db in DirInternal with a table with two fields. It was fine.
I needed a third field between the original two.
I uninstalled the program being debugged.
deleted the db using...
I then ran the program with a SELECT statement and got the expected error that the Table did not exist. I then ran with...
and again with...
which are variables string and two integers.
The error says that the added field Qty does not exist and I am trying to insert 3 items into 2 fields.
I had a db in DirInternal with a table with two fields. It was fine.
I needed a third field between the original two.
I uninstalled the program being debugged.
deleted the db using...
B4X:
SQL1.ExecNonQuery("DROP TABLE IF EXISTS Items")
B4X:
SQL1.ExecNonQuery("CREATE TABLE items (name TEXT, qty INTEGER, code INTEGER)")
B4X:
SQL1.ExecNonQuery("INSERT INTO scores (name,score) VALUES ("& " '"&sName&"' " &",iQty " &",iCode)")
The error says that the added field Qty does not exist and I am trying to insert 3 items into 2 fields.