Maybe i'm missing something... can you set an index of a custom list view (int) equal to a rowid in a table (long)?
Are they not of a different type?
If I understand your concern, the RowId returned from CellClicked is a type of Long.
When I assign the value to a Int variable, it may cause out of range if the value is too big that it can be larger than the Int upper bound.
I may be wrong but I see the size of items B4XTable can handle is in Int.
So I make an assumption the RowId will not larger than the Int upper bound.
When assigning to the variable of Int type, it will automatically casting to Int.
The second row in the B4XTable can have a rowid of 5 for instance after deleting some rows !!!
My textbox that accept "Row Id" is jumping to the row id on CLV as you referring to.
Yes, I may have made a confusion here because I am showing the column Id in the B4XTable.
This Id is referring to
column Id in sqlite db, not the in-memory db of B4XTable or CLV's row index.
Meaning, jumping to Row Id 2 is not jumping to Id = 2.
Instead it is "jumping" to the 2nd row of "data" rows, or 3rd item row of CLV where 1st item is the header.
If you mean deleting a row in B4XTable may affect the rowid of in-memory db of B4XTable, this one I cannot confirm.
I assume the rowids in the in-memory db will be reconstructed when adding or deleting row.