when a new record is added to the table, and the result set regenerated, how move the result set cursor to the new record directly, without having to do a sequential scan through the result set?
I don't understand again. Maybe a GUI design can help me understand better.
Are we talking about using a B4XTable or CustomListView for the UI?
B4XTable helps building a good user interface with many rows of records. It provides navigation and search function.
When talking about cursor, I can relate which index of rows or items. In current development, I don't see it is required, especially talking about B4X cross platform solution.
Remember that B4XTable utilize an in-memory database. We can treat it as an offline dataset which is not affecting the main database.
For example, we have a database table name "tblCustomer" in SQLite. In B4XTable, we are dealing with the table name "data".
In my understanding, resultset is use to return the data in a single or multiple rows from a query call.
Once you get the resultset, we use Do While loop to populate a list or display the data on UI.
After that, we don't "touch" the resultset anymore.
Also note that every new row is added at the end. Why we need to search? Unless you are not using an autoincrement id.