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

how can i read the record flag from the db file

 
long lingyu
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the flag is two byte.0 is validated,0x8000 is deleted.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Longly,
Welcome to JavaRanch.
We don't have many rules here, but one we do have is the JavaRanch Official Policy on Displayed Names. We need your displayed name to be a real name. Can you please adjust your displayed name to meet our requirements? You can change it here.
As for your question - what class are you using to read your file? (that may make a difference on what suggestions are made). What primitive is the same size as two bytes?
Regards, Andrew
 
Ste Graham
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question as been asked and answered before. Try searching for 0x8000 using the search (restricted to the SCJD of course!)
Stephen
 
long lingyu
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic