[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] Get palm record ID of new record?



Brian Johnson:
> This brings up another point though, I've assumed that once a PDB record has
> a valid record id, that id number doesn't change - is that accurate?

Correct. Even sync won't change it. In fact there can even be records
with *identical* IDs, though this would be a very bad idea because it
would break the sync mechanics.

> To set a new record id, can I just go through the PDB records (with a
> foreach) and add one (1) to the biggest number?

Whatever you prefer. There is no ordering rule for record IDs. You can
set it to any unused ID actually.

> Is there an upper limit?  I would suppose so.

The ID is an unsigned three-byte value.

Helge

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.