From: "Jamie McMullin" <[EMAIL PROTECTED]>
> Okay here's a thought, how about I go into the database
> via notepad and change all of the \30s into \0's?
>
I'd find a programmer's editor (ultraedit is pretty good)
because that's more likely to support special characters in
the search and replace. Your only problem then is making
sure that you only replace characters in the record data and
not in the pdb header.
You're better off finding the original data and using a different
tool to create the pdb (although you're then going to have to
find that and learn how to use it - also not a trivial task in a
short time).
Or write an unpack function that knows to look for \30. It's
really just a variation on
char outBuffer[somesize];
char * cpOut = outBuffer;
currentPos = 0;
// copy up to the \30
while (recordData[currentPos] != '\30')
{
*cpOut++ = recordData[currentPos++];
}
// and terminate the string;
*cpOut = '\0';
with appropriate error-checking. No?
Chris Tutty
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/