B4X:
'In sqlite datetype field is integer
Sub GetTitles(datetype As Int) As Cursor
Dim table As Cursor
'It does not work.
table=SQL1.ExecQuery2("SELECT title FROM titles WHERE datetype=?;", Array As Object(datetype))
'It works. ----> Array As String
table=SQL1.ExecQuery2("SELECT title FROM titles WHERE datetype=?;", Array As String(datetype))
return table
End sub
Why?