Thanks,  I had a suggestion earlier to use a structure for the record. This
makes a lot of sense. I will look into that. The problem does get
interesting and the solution is a chance to learn some good programming.

----- Original Message -----
From: Glenn Bachmann <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Monday, June 12, 2000 9:06 PM
Subject: Re: Can a Palm database have more than one field per record?


> At 08:17 PM 6/12/00 -0500, you wrote:
> >In general a database row is divided into fields. The firstname in column
0
> >would be a field. The lastname in the second column would be a field. I
see
> >nothing that directly supports fields.
>
> I understand your confusion. Palm databases are not "structured" in the
way
> that many other database systems are. There is no concept of a "field",
> each record can be of any size you want, read as raw memory, and
> interpreted in any manner you please. Most applications do impose a
"record
> structure" on the record block, but there are no rules about how that is
> done, and fields can be (and often are) varying in length, with the end of
> a field determined by a null terminator.
>
> If you are looking for a more structured api, you may wish to look at
> Oracle or Sybase's offerings (I'm not recommending one over the other or
> even either one at all, just pointing out that they impose a greater level
> of structure on Palm databases).
>
> Hope this helps. Find yourself some example Palm code (the built in app
> source code that comes with Codewarrior is always excellent for this) and
> learn how that code deals with databases.
>
> Cheers,
> Glenn
>
>
>
> Glenn Bachmann
> Bachmann Software and Services, LLC
> http://www.bachmannsoftware.com
> Software for Handheld & Wireless Computing, Windows and the Internet
> Authors of "Palm Programming", published by Macmillan/Sams, and home of
> Bachmann Print Manager, the only graphical printing solution for the Palm
> Computing Platform
>
> --
> 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