• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

delete record

 
Goran Borozan
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Preparing for the URLyBird.

I implemented the create and delete methods in the Data class but
i need never to use them in the gui (book = lock-update-unlock). Is it OK ?

Is it ok to set record to be deleted like this (0x800 - deleted record )



Tanks for help

[ June 03, 2004: Message edited by: Goran Borozan ]
[ June 03, 2004: Message edited by: Goran Borozan ]
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Yes
2. May be you are right. I am not entirely sure. I guess you have split the value into 2 bytes and updating them one after the other.

I find it easy to this:
raf.writeShort(DELETED_FLAG)
Where DELETED_FLAG is a constant with value. 0x8000. This allows the constant to be changed easily in the future.
 
Goran Borozan
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tanks Vishwa !

But i have to set deleted flag by
record.setDeleted(deletedRecord);
where deletedRecord is byte[].

How can i do it with raf.writeShort(.. ?

/Goran
 
Goran Borozan
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tanks Vishwa !

But i have to set deleted flag by
record.setDeleted(deletedRecord);
where deletedRecord is byte[].

How can i do it with raf.writeShort(.. ?

/Goran
 
Wickes Potgieter
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently, you don't need to implement those methods. One of Ranchers has passed without implementing it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic