Jeff, >So if you are looking for the record index corresponding to a particular >UID, you can do better than a linear search of the record list with the >information above. DmFindRecordByID() does a linear search. For >example, you can do a binary search of the record list
Binary searches don't work unless the list is sorted by the value you are using as the compare criteria. Database records are not (necessarily) in order by the UID, unless you force them to be. DmFindRecordByID() can't make that assumption, so must do a linear search. Doug -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
