wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: What is the Value used for RecNo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S: What is the Value used for RecNo" Watch "B&S: What is the Value used for RecNo" New topic
Author

B&S: What is the Value used for RecNo

Saheed Adepoju
Ranch Hand

Joined: Jun 23, 2004
Posts: 267
Hi all
I have a question, might sound stupid but it's still a question! What does one use for RecNo! Do you have to generate one, or is it within the datafile!
Thanks as you reply!


Saheed Adepoju<br />SCJP 1.4<br />SCJD (B&S..In progress)
Lara McCarver
Ranch Hand

Joined: Dec 09, 2003
Posts: 118
If you open the file with TextPad, you will see that the record number is not in the file. I am just assigning a "temporary" record number at run time based on position. The 1st record is 0, and so on. Even though you can't directly access them, in my implementation, deleted records get a record number too, which are not really deleted, just marked as invalid, count as a record. So if record 2 is valid, then the next record is invalid, followed by a valid number, the record number for the next valid record is 4.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: B&S: What is the Value used for RecNo
 
Similar Threads
Obtaining recNo from JTable - wrapping recNo in Room Object(UrlyBird)
Question about lock/unlock sequence
[URLyBird] Should I use a business object or String[] in my Data class?
NX: URLYBird / my approach of the reading problem
Starting OCMJD