Hi, pardon me if I'm wrong here.

> I'm used to having DB files with searchable "keys" - in my example, the
> patient ID would be a keyed field - so it's very easy to go right to a
> record with a known key value. But I guess that's not possible in a Palm
DB,
> because it seems the DB is just a text file - no supporting "keys" for
rapid
> searching. Is that right?

If you have the records sorted by, say, last name, why not code a binary
search routine? Just take the middle pointer, compare with the name that you
are looking for, iterate (I shall not go into the details of binary search,
I assume you should know. :) )

But just a side track, does your program has a list view (similar to that of
memo) where all the patients get listed and then you could just tap on one
of them and see the details for that patient? That's the way I perceive most
Palm programs would be. :)

Regards,
Gee.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to