I dont know why this SqlitePreparedStatement returns NIL
Dim ps As SQLitePreparedStatement
Dim auth1 As String = lb.Cell(row,0)
(typ is a string variable)
ps = SQLitePreparedStatement(App.DB_Library.Prepare("SELECT * FROM ANBio WHERE ANname = ? AND type = ? "))
ps.BindType(0, SQLitePreparedStatement.SQLITE_TEXT)
ps.BindType(1, SQLitePreparedStatement.SQLITE_TEXT)
ps.Bind(0, auth1)
ps.Bind(1, typ)
rs = ps.SQLSelect
but this works.
rs = App.DB_ANBio.SQLSelect("SELECT * FROM ANBio WHERE ANname = '" + auth1+ "' AND type = '"+typ+"' ")
I use SqlitePreparedStatement’s elsewhere in the app without problems.