To do a binary search in a sorted database, use DmFindSortPosition to do the binary search, passing it the same compare function you used to sort the database. Pay special attention to the note in the docs about subtracting one from the result when using DmFindSortPosition to find an existing record. -- Danny -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
- How do I know the index of a db record? Brian Smith
- Re: How do I know the index of a db record? Erik Blake
- RE: How do I know the index of a db record? Brian Smith
- RE: How do I know the index of a db record? Steve Mann
- RE: How do I know the index of a db record? Erik Blake
- Re: How do I know the index of a db record? Ng Wei Gee
- RE: How do I know the index of a db record? Brian Smith
- Danny Epstein
