Thanks for your email, Kevin.  But I am still confused.

I use these functions to create and open a new database;

1. DmCreateDatabaser() to create a new database.
2. DmOpenDatabaseByTypeCreator() to open the database.
3. DmDatabaseInfo() to get attributes for the database.
4. DmsetDatabaseInfo() to set the new attributes in the database.

To close the database, I used DmCloseDatabase().

I am only using the above 5 functions so far.

I really hate to be a bone head...  But when you said "application's 
creator ID," What do you mean?  I thought that steps 1-4 would take care 
the application and database info.  I guess I am missing something...  How 
to set up the application's creator ID?



-----Original Message-----
From:   Kevin O'Keefe [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, March 02, 1999 1:33 PM
To:     '[EMAIL PROTECTED]'
Subject:        RE: [Q]  Database question...

If you see the database separate from your application, that means you have
different creator ids for the database and the application.  Sometimes this
is what you want, but usually you want the database to have the same 
creator
as the application so that deleting the application also deletes the
database (and so when a user looks in the memory they will not see both the
database and app.).

Hope that helps,
Kevin

> -----Original Message-----
> From: Shin Tanaka [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 02, 1999 10:15 AM
> To: '[EMAIL PROTECTED]'
> Subject: [Q] Database question...
>
>
> Hi, I've been programming Palm about 10 days.  I am facing
> some problems.
>  I need your expertise.
>
> I am developing a generic database application.  Right now,
> the program
> only opens a database and closes it (just DmCreateDatabase and
> DmCloseDatabase).
> When I choose "Menu -> Delete" in the main application form,
> I see that
> along with my program there is the newly created database
> listed. I am not
> sure if this is a problem or not...  I really appreciate if
> you can give me
> some comments or suggestions.
>
> My database:
>
> #define feiSalesDBCreator     'Feis'
> #define       feiSalesDBType          'ordF'
> #define       feiSalesDBName  "order-Feis"
>
> Uint  mode = dmModeReadWrite;
> DmOpenRef dbP = DmOpenDatabaseByTypeCreator(feiSalesDBType,
> feiSalesDBCreator, mode);
>
> Thank you very much for taking the time to read my letter.  I really
> appreciate it.
>
>

Reply via email to