> > --- Karlheinz Toni wrote:
> > > what is the kType variable in the DmCreatedatabase
> > > function for?

> "Joe Programmer" schrieb
> > I don't know which docs you are looking at (kType?), but 
> > the 4th parameter to DmCreateDatabase() is a UInt32 which 
> > holds the database type.

--- Karlheinz Toni wrote (offline):
> But what can I do with this variable, what do I need this 
> for, do I have to remember the value I enter here?

Quoting from Neil Rhodes, in "Palm OS Programming, the Developer's
Guide," 2nd ed. :

"Databases are created with a name (which must be unique), a
four-character type, and a four-character creator. When a user deletes
an application, the Palm OS automatically deletes all databases that
share the same creator. The preferences record is removed at the same
time. So that this cleanup can happen correctly, it�s important that
your databases use the creator of their application."

So, the answers to your questions are:
1) Set it to 'DATA' (==0x44415441).
2) You need it to create a database and you will need it again if you
want to open that database with DmOpenDatabaseByTypeCreator().
3) Yes, you will want to ("have to" may be too strong a word) remember
what type you used.

Read the Reference for more info on DmCreateDatabase().


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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