WangRain wrote:
but i very confuse when i rewrite all the codes, the data
can't be written into database,please help;

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?

  - Logan

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to