On Thu, 18 Jan 2001, Oscar wrote:

> Dear All,
> 
> The same question for the ceartorID, which is a UInt32 type, but why if I
> can pass "DEFG" to it without error?
> In my view, "DEFG" is a string with is "char*' type but not integer type.
> So, I really feel confuse about it. Who can help me again?
> 
> Oscar

'XYZA' (single quotes) is a char value which will be interepreted as a 4-byte
char, i.e. a long (32-bit) integer.

"PQRS" (double quotes) is an array of char values, also known as a string. you
would commonly reference this via a char *.

HTH,

Simon.



> ----- Original Message -----
> From: "Oscar" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Thursday, January 18, 2001 4:27 AM
> Subject: Re: Create Database Problem
> 
> 
> > 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/
> 
> 
> 



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