I have two buttons inside of my application, one for next and one for prev. I want the next button to get the next record inside of my database and display it inside of my view, and the prev button to get the previous record and display it inside of my view. How would I call the next or previous record? I have looked for tutorials and stuff but didn't find any. I anyone has a tutorial please share with me. Thanks for any help. I wish I had some code to provide but I really don't know where to start.
相关问题
- How can I create this custom Bottom Navigation on
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Bottom Navigation View gets Shrink Down
- Difference between Types.INTEGER and Types.NULL in
I use an int to pull the record from the dbase.
From my ContactView class
then my query is from my Dbase class
and the next few are from my ContactView class
my buttons
and the methods they call
That will get the record from the database based on the "record" variable, and the buttons increment it, or decrement it, it also skips any "empty" records.
EDIT OK, I had changed some stuff around since I lasted used my db, so use the next recordPlus() and recordMinus() code instead
And you'll need my fRec() and lRec() which find the first and last records in the DB