I have seen the following two uses of ExecQuery2() but I am unclear as to the difference in use of Object and String.
The two methods appear variously used. Are they interchangeable ?
B4X:
'Corrected for SQL query
Cursor = SQL.ExecQuery2("SELECT * FROM MyTable WHERE fieldX = ? AND fieldY = ?", Array as String(var1,var2)
Cursor = SQL.ExecQuery2"SELECT * FROM MyTable WHERE fieldX = ? AND fieldY = ?", Array as Object(var1,var2)
The two methods appear variously used. Are they interchangeable ?
Last edited: