--- Trevor Menagh wrote:
> I have a situation where I have a Datebook record
> that is marked private with Hide Records turned on.
> ...
> My problem right now is, of course, that when I
> search the DB it doesn't find the hidden record, so
> it assumes there isn't one, and a new record is
> created.

Marking a record "private" doesn't prevent your app
from finding the record.  In fact, your app has to
deliberately ignore private records in order to not
find it.

// open datebook
UInt16 mode = dmModeReadOnly | dmModeShowSecret;
DmOpenRef ref =
DmOpenDatabaseByTypeCreator(datebookDBType,
sysFileCDatebook, mode);

etc.


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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