> From: Dean Rochester
>
> I have looked through the Java Conduit tutorial and there are samples for
> reading a text file, but that is not quite what I am doing.  How do I
> convert this comma separated file file into a DB if I have to?
>

A database on a Palm OS device consists of a collection of records, each one
being < 64K, each containing whatever you want to put there (a single
string, a bunch of UInt's, whatever bytes you want).  A CSV is just a text
file in which each line (record) contains some fields, and commas are used
to separate the fields.  So, on a Palm device, you could store each record
from the CSV as a string in one record of a Palm database, or you could
parse the fields into separate fields and store all the fields in one
record, with each field stored as the appropriate datatype.  Note the Palm
OS does not directly support relational databases.  If you want to create a
relational DB, with multiple related tables that each contain fields, you
have to program that yourself (or use one of the third party apps like
SatForms, etc.)

> I looked at ThinkDB and it has a way of reading comma separated
> files in to
> its thinkdb databases on the palm.  Since there are no Files on the palm,
> how do I locate this comma separated listing once I do get it to the palm?
>

Under the Palm OS, there are no files.  Everything is stored as a resource
database.  Your app is a resource database that contains code, the DBs your
app creates and uses are databases, etc.  If you want to find a DB someone
else put on your device, use DmGetNextDatabaseByTypeCreator() with 0 for the
type and creator.  Or, if you just want to see what DBs are on your device,
but your app doesn't need to look them up, use a program like Insider.


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