I use an internal flag, when the user creates a new record, so that if they
delete it while they are still working on it, I can completely remove it
from the database (DmRemoveRecord).  If the user navigates to a different
record (or creates another new one), this flag is reset (only applies to the
currently active record in my case). If they later delete the record, I use
DmDeleteRecord.

The conduit looks at the record dirty flag, to see which records need to
come to the desktop (dirty = modified since last sync).  This will catch the
deleted 'new' records as well.  If they don't exist on the desktop side, and
are deleted on the remote/palm side, I simply let the conduit remove them
completely.


on 9/10/01 2:00, Chris Tsoi at [EMAIL PROTECTED] wrote:

> From the document of Palm OS, DmRecordInfo can get the record's attributes.
> That is dmMaxRecordIndex, dmAllRecAttrs, dmRecAttrBusy, dmRecAttrDelete,
> dmRecAttrDirty, dmRecAttrSecret
> and also dmSysOnlyRecAttrs. By bitwise operation, I can determine whether
> the record is deleted.
> And by & dmRecAttrDirty, it can indicate whether the record has been
> modified since last sync. So, I want to ask
> is there any flag that can show the record is a new one.
> 
> Thank you for your attention.
> 
> "Holger Klawitter" <[EMAIL PROTECTED]> wrote in message
> news:62068@palm-dev-forum...
>> 
>> by calling DmRecordInfo
>> 
>> I am not sure what you mean by "new".
>> Compared to the age of the earth all records on Palm devices are rather
>> new :-)
>> 
>> With kind regards / Mit freundlichem Gru�
>> Holger Klawitter
>> --
>> Holger Klawitter
>> [EMAIL PROTECTED]                             http://www.klawitter.de
>> 
>> 
>> 
> 
> 


-Tom Hoelscher

~~~~~~~~~~~~~~~~~~~~~~~~~~
"Original Sin is hard to find, but the digitally enhanced version is readily
available".


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