Hi Matt!
> I have archived records...
> However, I want to read these 'deleted' records on the Palm, but am not
> allowed.
> ...
> - mess with the delete bit in the attributes before and after I read the
> record
>
> Does anyone know the likelihood that we won't be able to access (i.e. set)
> the attribute bits in the future? ... Do you have any comments Danny?
Who me? :) The dmRecAttrDelete bit isn't included in dmSysOnlyRecAttrs, so you're
allowed to modify it via DmSetRecordInfo. The documentation agrees. AFAIK, this is the
only way to access an archived record's contents. I assume this is how the conduit
server on the device does it.
For the benefit of others, I'll point out that there are three ways to get rid of a
record:
DmRemoveRecord
Removes the record header from the list of record headers.
Frees the record's handle.
DmDeleteRecord
Sets the dmRecAttrDelete bit in the record header.
Frees the record's handle.
DmArchiveRecord
Sets the dmRecAttrDelete bit in the record header.
Leaves the record's handle alone.
Applications that don't have a conduit use DmRemoveRecord. Applications that do have a
conduit use DmArchiveRecord if the user says he wants to archive the deleted record or
DmDeleteRecord if not.
-
Danny
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/