B4XTable is a really great extension and I use it a lot. Now I have the problem that I cannot select one ore more rows programmatically.
This example works great:
where this one does not:
What is the difference?
If I select the whole result (number of 115) in a loop it selects all rows just fine but if I select two rows it does nothing.
rs.GetLong("rowid") only returns a number right?
This example works great:
From select query:
Dim rs As ResultSet = B4XTable1.sql1.ExecQuery("SELECT rowid from data")
Do While rs.NextRow
Selections.SelectedLines.Put(rs.GetLong("rowid"), "")
Loop
Selections.Refresh
where this one does not:
Programmatically:
Selections.SelectedLines.Put(1, "")
Selections.SelectedLines.Put(2, "")
Selections.Refresh
What is the difference?
If I select the whole result (number of 115) in a loop it selects all rows just fine but if I select two rows it does nothing.
rs.GetLong("rowid") only returns a number right?