Dear all,
writing
returns a 'ClassCastException'.
But when I write:
it works as it should. 'mySearch' and 'mySearch2' are dimmed as strings.
Any ideas what goes wrong with my first line? Thank you.
writing
B4X:
CursorSearch = sql1.ExecQuery2("SELECT ID FROM items WHERE (DESCRIPTION LIKE ? OR DESCRIPTION LIKE ?) AND ID>=10000 AND ID<20000", Array As Object(mySearch,mySearch2))
returns a 'ClassCastException'.
But when I write:
B4X:
CursorSearch = sql1.ExecQuery("SELECT ID FROM items WHERE (DESCRIPTION LIKE '" & mySearch & "' OR DESCRIPTION LIKE '" & mySearch2 & "') AND ID>=10000 AND ID<20000")
it works as it should. 'mySearch' and 'mySearch2' are dimmed as strings.
Any ideas what goes wrong with my first line? Thank you.