Make sure you wrap your type in single quotes as opposed to double quotes
which denotes a char value.
"Oscar" <[EMAIL PROTECTED]> wrote in message
news:36135@palm-dev-forum...
>
> Dear Ryan,
> Thanks for your help, but I have another problems now, I have change to
pass
> "DATA" to the function and now the compiler prompt me error for "cannot
> convert char* to unsigned long". Why it happens? If the "type" the
function
> accept is a UInt32 type, why we pass the string "DATA" to the function
(The
> char* type)? It seems doesn't make sence. Also what is the meaning og this
> parameter? How about if I pass "ABCD" to the function?
> Thanks for you help a lot!
> Oscar
> ----- Original Message -----
> From: "Ryan Waldrop" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Thursday, January 18, 2001 3:56 AM
> Subject: RE: Create Database Problem
>
>
> > The type parameter is just a UInt32 and can be whatever you want it to.
I
> > have several databases in the app I'm currently working on and none of
> them
> > are of type 'DATA'. There isn't a problem with the syntax in the call
> that
> > you put in your message, so make sure that the function call in your app
> is
> > the same. What I usually do is #define my database types at the top.
> Makes
> > them easier to keep track of.
> >
> > #define ExampleType 'BLAH'
>
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/