I am not sure if my method was correct, but it seems so. I just made the 3 bytes' unique ID an increasing value, from 1 to N, N is the total record number. And I tested with real devices and it worked well even I had used more than one such database. You can do it, and see what will happen. Have fun!

Best Regards,
---------------------------------
Huiqiang Zhang
Mail: [EMAIL PROTECTED]
---------------------------------
Firma Hoffrichter GmbH
Mettenheimer Strasse 12/14
19061 Schwerin
www.hoffrichter.de

----- Original Message ----- From: "Eric Potter" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[email protected]>
Sent: Thursday, January 27, 2005 4:27 PM
Subject: createing pdb records on the desktop



I am craeting pdb files in a desktop application. My question has to do with what I should do for the uniquie IDs of the records. If I leave them as 0, they get filled in when they are hotsynced to the device. But if they left at 0 and droped onto the simulator, there is a problem when you hotsync the simulator, since all the records have the same ID.

Is there a way around this. Shold I fill in the id at the risk of going outside the PalmOS scheme of generating IDs?

thanks

Eric Potter

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





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

Reply via email to