From: "Dan" <[EMAIL PROTECTED]>
> So I switched to a binary search... which
> works great... but (as you may have surmised) a binary search (in
> this particular example doesn't *quite* work since it may put you
> way PAST the intended target! For example, when the user enters a
> "b" the binary search way bounce around and end up matching the "b"
> with "bird" instead of the FIRST entry ("Banana") (I am only
> searching for a match on the first character since that's all I have).
You're just quitting the search too soon. In the example you give, 'b'
doesn't match "bird" anymore than it matches "azzzzzzzzzzzzzzzzzzzz". Just
because the search is binary doesn't mean it's inexact.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/