You wouldn't happen to have an example of how to do a binary search in codewarrior, would you?
I have found an example of a binary search in codewarrior C, but it's not for accessing records in a database, but for find data in an array.
Use the code for an array, but instead of indexing into the array, use the index variable as the index value to DmQueryRecord, and change the comparison routine to query both records and do your own comparison.
-- Ben Combee, Senior Software Engineer, palmOne, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
