> I asked how to programmatically delete an app preference (like an
> orphaned one).
>
> I was told to "write 0 to it". I don't believe this is enough
> information.
>
> Write 0 to where. There is already a 0 in the first location, so that
> can't be what is required.
>
Call PrefSetAppPreferences with a NULL pointer and/or 0 size. (4th and 5th
parameter).
For example:
PrefSetAppPreferences('ABCD', 0, 0, NULL, 0, true)
Getting a Palm OS source license is invaluable.
> Do all records of any database, have a type associated with them, or
> do only resources records have a type?
For record databases, the database header contains, for each record, a
3-byte unique ID, along with 4 bits of category, and 4 bits of attributes
(deleted/busy/dirty/secret).
For resource databases, the database header contains, for each record, a
4-byte type, and a 2-byte ID. The resources you create in constructor map
directly (except for menus) into corresponding resource in your application
(resource database).
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA 92374
(909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545