This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

owner field

 
uzma ali
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am doing B&S and owner field contains nothing or it should have a string with a default value of null.

If I check it with null or "" then it's not

I need this value so that to say if the record is available for booking.

Please help and give me suggestion

Thanks

Uzma
 
Musab Al-Rawi
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
the given file has contractors that are not booked... if you check the contents of the file using hex editoryou will find that the owner field is filled with zeros (byte value 20).
so if the record is booked that field won't contain the value 20, which is space.

hope that helps
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!