That code looks pretty close. I think you still need to write some kind of marker in there to indicate when a string doesn't exist; otherwise, it will be ambiguous when you try to read the record. I usually solve this by writing an empty string if the string's pointer is NULL. And anyway, even though that is a problem, it shouldn't prevent you from writing the record.
What error are you getting and when? Have you tried single-stepping in the debugger to see where it fails? yes,I tried single-stepping in the debugger and the fails only is that i can't write data into database; thanks! -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
