Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

record number/delete item

 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a good way to get the record out of db.db?
I've noticed the deleteRecord() in the Data class will not lower the record num by 1. When the getRecord() method meets a deleted itm, it will return null.
Right now I am implmenting the criteriaFind() based on recordCount. I am assuming the record # will start at 1 and end at recordCount. Is that safe?
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you experienced any problems with getRecord(n) method ? Please try it calling it 2 times in a row. I am having a problem with it it only returns one search and doesn't do anything for a second call. Unless there will be a time out for me.
thanks.
 
Rick Fortier
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deleting a record only marks a record as Deleted, it never removes the record from the file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic