I need to get the autonumber id when inserting a row, Im trying with
Cursor2 =SQL1.ExecQuery("Select last_insert_rowid();")
IdApp = Cursor2.GetInt2(0)
But I get the following error:
error UpdateRecordPos android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1
Ive tryed with Cursor2.GetInt2(0) and Cursor2.GetInt2(1)
and always the same error
Thanks
Cursor2 =SQL1.ExecQuery("Select last_insert_rowid();")
IdApp = Cursor2.GetInt2(0)
But I get the following error:
error UpdateRecordPos android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1
Ive tryed with Cursor2.GetInt2(0) and Cursor2.GetInt2(1)
and always the same error
Thanks