Hi,

I'm having the hardest time here:

I have a database that holds a small number (5 or less) of records. Here's
my problem:

I'm keeping track of the indices in an array - that is, I'm setting an
artificial limit of 5 total records in the database, and storing the record
index of each in an array of ints of size 5.

My problem is this: when I've created more than 1 record, and then delete
one of them, I can't retrieve any other data! That is, the index appears no
longer to be that record's index.

I thought that this was a case where I was inserting records in, and then
upon deletion the indices below it all shifted back by a value of 1, but
this even happens when i delete the LAST index -- so ALL the indices appear
to be affected.

Does this make any sense?

Is there a way to reliably keep track of which record is which inside a
database?

(there must be...)

Thanks for any and all help..
-Pete

--
Peter Solderitsch
[EMAIL PROTECTED]
http://www.stanford.edu/~petey/

Reply via email to