> Do indecies always remain the same in a database after it was opened and 
> before it is closed, provided that no records have been inserted and that 
> the record sort order has not been changed?

Records indices or "record numbers" are just like array indices. They go
from zero to the number of records minus one. A records index will change if
a record is inserted or deleted before it, or if the records are sorted. If
you open a database for write, no one else can modify it while you have it
open. Of course, if it's your own database, no one else is likely to touch
it anyway. :)

If you need a way to reference a record that isn't affected by insertions,
deletions, or sorting, you can use the unique ID - see DmFindRecordByID.
This is slower though. A combination of the two is sometimes used.
--
Danny @ Palm

-- 
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