-----BEGIN PGP SIGNED MESSAGE-----
Nate Neufeld wrote:
> Hi All,
> I am new to programming Palms, and want to experiment with creating
> a basic questionnaire application. I am curious about how Palm
> databases store and retrieve data. My database will hold multiple
> records, each containing several fields of data inputted by the
> user in the main form. Eventually I want to write a conduit that
> will do a two-way sync with an Access database and the Palm
> database.
> I've worked through the CodeWarrior Palm tutorial with the memo
> pad, but want to have each record contain more entries. Can
> somebody suggest where I can get a look at source code for a simple
> application like this? The sample source code section at
> palmos.com doesn't seem to have anything like this.
> Thanks in advance,
> Nate
Assuming you have experience using Access, I'm going to guess that
you're getting tripped up by the term "database". PalmOS does not
have databases in the same way Access/Oracle/Sybase/etc.. have them.
In Palm, a "database" has some header information, and records,
that's it. There is no such thing as fields. Each record is a binary
chunk, up to 64K, that contains anything you want. Generally, to
create "fields", you define a C struct, and save the raw binary to
the record. In this way, you can do whatever you want with a record.
- --
Brian Mathis
Direct Edge
http://www.directedge.com
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8
iQCVAwUBOi3KmpwT6UbDtVwVAQHuhQQAlgrxtpNXy+1MDoJNjML7Q8Y2zRr72lBh
9wy4dGSywC6IuM9sLHWiVbXx3vyD+jWNgfpgdndojXoEq+bIRTYtzDU5ItqfT3oC
mxVAhgFyrUOYLjxQHf5eaM9/hbTAb+h0I1TqhQqLCVjCrcG3RkdeKt3SpDmKse3M
UZk8OpBGPRg=
=ZBUy
-----END PGP SIGNATURE-----
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/