Yeah, I need two records, with different dates. So what I have done is always add to the end of the database, and then do the sort just like you suggest. Performance seems the same so I don't think there's anything wrong with doing it this way.
Thanks, Ed Joe Malone wrote: > --- "Edward P. Ross" <[EMAIL PROTECTED]> wrote: > > I kind of figured that was the case, but I wanted to see what the > > workaround was. > > There may be several ways to get around the problem. One way is to > always insert records at the end of the database, after the last > record. There may be other solutions, depending on exactly what you > are trying to accomplish by duplicating the records -- do you want to > end up with two of each record, or just one? If only one, why not just > change the date, rather than duplicate the record? If you want two of > each, in what order do you want them stored? If you want two of each, > you can still add them at the end of the database, then sort it. An > efficient sort algorithm will be faster than inserting each record into > the middle of the database, moving all subsequent records with each > insertion. > > __________________________________________________ > Do you Yahoo!? > Yahoo! News - Today's headlines > http://news.yahoo.com > > -- > 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/
