Hi All,
I am getting the below error when i read data from the cursor when its position is at 10th row. There are totally 20 rows. It works from 0 to 9 . I checked the DB and it is fine.
Any suggestions of how to solve will be very helpful.
Regards,
SK
I am getting the below error when i read data from the cursor when its position is at 10th row. There are totally 20 rows. It works from 0 to 9 . I checked the DB and it is fine.
B4X:
java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
B4X:
For i = 0 To cu.RowCount-1
Log(i)
Dim detail As Ebook
detail.Initialize
cu.Position = i
detail.ID = cu.GetInt("ID")
Next
Any suggestions of how to solve will be very helpful.
Regards,
SK