Access 'Saved Preferences' with PocketC

Discuss PocketC for Palm OS (including Desktop Edition)

Postby SyPDA on Fri Mar 09, 2001 9:06 am

Does anybody know if it is possible to access the saved preferences with PocketC?
I am looking for a better solution to save user-defined values than storing them in an extra .pdb.
Posts: 94
Joined: Tue Dec 05, 2000 8:08 am
Location: Germany

Postby stephane on Fri Mar 09, 2001 4:18 pm

You could try saving them in an existing database.

In one app I'm working on, I save different types of categories in the first three records, with the rest of the records containing the "actual" data.

As opposed to traditional databases, the records in the pdb files don't seem to need to be identical in format, including length. What I've tested so far seems to work, but if I'm wrong, someone let me know so I can redesign the app! <img src=icon_smile.gif border=0 align=middle>

Posts: 71
Joined: Fri Jan 12, 2001 3:16 am
Location: Canada

Postby jstadolnik on Sat Mar 10, 2001 1:09 am

Normally, when database files are created with "dbcreate" you have to delete them from the pocketC app to get rid of them... which is a pain, especially when a database holds an apps preference information.

However, if you create a database using "dbcreatex" and set its user id to be the same as your .prc app file, then when you delete the app, the database gets erased with it. (Databases created this way may also beam with their corresponding .prc files, but I don't have two PDA's to test this.)

Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 1 guest