No, it's not. You can use "if (uniqueID). The value 0 is used to create a new record when working with conduits, so that the system can assign a valid (free) id. But... are you working with conduits? Why are you iterating using uniqueid instead of the recordindex? I guess every record has validID.
in article 67786@palm-dev-forum, Sam Trimble at [EMAIL PROTECTED] wrote on 13.11.01 3:23 PM: > > Hey, > I've got a bit of a problem. I'm currently testing a UInt32 against a > '0' to see if it is a valid UniqueID or not. EX: if (uniqueID). What I need > to know is if I am in the wrong in doing this. Will '0' ever be a valid > UniqueID under PalmOS? > I'm not familiar w/ how PalmOS generates it's UniqueID's but, even if > '0' is valid, will any of my apps records have this ID? I would think not, > because even if my app was the first they installed after they purchased > their palm, there would still be other records present before any of mine > were created, right? Will the ID # ever loop around the end of the UInt32's > boundries and start at '0' again? > Could someone who knows more about the PalmOS UniqueID's than I do > answer my question? Thanks.... -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
