Hi
I am studing sql access and I receive this message when executing this line:
cursor1=SQL1.ExecQuery("SELECT nome, email, telefone FROM sql_test")
android.database.sqlite.SQLiteException: no such table: sql_test: , while compiling: SELECT nome, email, telefone FROM sql_test
sql_test exists and at debug (local vars) I read:Cursor not initialized.
If I check the cursor the code above runs ok (see *)
I am studing sql access and I receive this message when executing this line:
cursor1=SQL1.ExecQuery("SELECT nome, email, telefone FROM sql_test")
android.database.sqlite.SQLiteException: no such table: sql_test: , while compiling: SELECT nome, email, telefone FROM sql_test
sql_test exists and at debug (local vars) I read:Cursor not initialized.
If I check the cursor the code above runs ok (see *)
B4X:
Dim cursor1 As Cursor
If cursor1.IsInitialized Then '(*) this if is allways false
cursor1=SQL1.ExecQuery("SELECT nome, email, telefone FROM sql_test") '(*) never run
cursor1.Position=indice
label3.Text=cursor1.GetString("nome")
label4.Text=cursor1.GetString("email")
label5.Text=cursor1.GetString("telefone")
End If