--- In [EMAIL PROTECTED], Matt Graham <[EMAIL PROTECTED]> wrote: > The DmFindSortPosition is looking for where to add the record, so just > pack your record exactly like you will add it to the database then pass > the record to the function. Your new packed record will end up getting > passed to your compare function exactly like the other records that are > already in the database. > > your call to DmFindSortPosition() looks right, you just need to take out > that .key stuff and pass the regular record. > > hope this helps, > Matt > Hi Matt,
I'm trying to find an existing record in a sorted database, rather than insert a new record. As I understand it, I have to create the packed record with the key value in memory somehow rather than use DmNewRecord. I thought that if I use DmNewRecord and pack it with the key value, it would write the record to the database again? Of course, I could be completely wrong! What do you think? Thanks, Nick -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
