On Wed, 26 Sep 2001, Danny Epstein wrote:

> You could make your conduit set a Boolean in the app info block. I'm not
> very familiar with the conduit API's, but I'm sure you can come up with
> something. 

You could also set it in a preference (yes, you can do that with the
conduit API as well :-), if you want to go that route.  It seems like it
wouldn't really matter where you put it, as long as you initialize it as
false the first time the app runs, and the only thing to change it after
that is the conduit (if it's used).  The only time that the preference
will be lost is if you delete the app from the handheld, but if you do
that then you delete the database(s) associated with the app as well.

I agree with Danny... use DmRemoveRecord rather than DmDeleteRecord until
the user has synced with the conduit at least once (which would result in
the boolean value being set), as it's much simpler than worrying about
purging records that are marked as deleted from the app.  You wont lose
any changes that way, since there will be no existing records on the PC to
need the deletion info. 

----------------------------------------------------------------------
Brian Smith  //   [EMAIL PROTECTED]   //  http://www.arthurian.nu/
Software Developer  //  Gamer  //  Webmaster  //  System Administrator
A Black Hole:  What happens when God divides by zero.



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