At 10:38 PM -0700 5/31/99, Scott Johnson wrote:
>Peter Solderitsch wrote:
>> when I've created more than 1 record, and then delete
>> one of them, I can't retrieve any other data!
>
>First a newbie tip: try to describe your problems with more detail, such
>as which API's you are calling and the exact error resulting. (The
>above description would be considered vague. However...)
>
yes.. sorry, i typed out that question in a pique of frustration, and
rushed it.
>> I thought that this was a case where [...] upon deletion
>> the indices below it all shifted back by a value of 1 [...]
>
>Are you confusing "delete" via DmDeleteRecord and "remove" via
>DmRemoveRecord? DmDeleteRecord blows away a record's body but leaves
>its header in the database header, so no other records' headers get
>shifted anywhere. DmRemoveRecord blows away a record's body _and_ its
>header, causing records at higher indexes to shift down by one (if you
>think of the database header like an array).
>
thanks for this suggestion.. this was part of the problem. The rest was
that my state *was* getting stored, but the data was getting blown away
BEFORE storing, so the state was always empty, hence my total confusion as
to what was going on.
Thanks again for the tips!
-Pete
--
Peter Solderitsch
[EMAIL PROTECTED]
http://www.stanford.edu/~petey/