The structure piece I understand.  I just want to read the bytes that make
up the record, so that I can read any palm database record.  I have gone
through the Palm OS Programming from the ground up book and have put the
contacts database into my Palm Pilot.  I now want to write a conduit to read
the names and phone numbers out of the ContactsDB.  I get the record numbers
and indexes, but I only get one letter or nothing at all for the record
text.  

I am not sure of the structure of the record, so I am looking for a means to
read byte per byte the data and then write it to a file.  This way I can see
the structure and then change the reading method.

Am I out in left field here?  If there is a way to see the databases
structure other then just walking through the records and doing byte reads,
please advise.

Thanks in advance
Dean-O


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Burmeister
Sent: Monday, June 11, 2001 11:43 AM
To: Palm Developer Forum
Subject: RE: How does one read through a Palm Database?


> From: Rochester, Dean
>
> I have gone through the examples in the CDK for the conduits
> and all works great.  I am now trying to modify the
> textcond.java example to read through a different database
> then the MemoDB.
>
> I have changed the remote database using CondCfg.exe but when
> I look at the output file that it makes on my PC I do not see
> the text for the record data.  I only see the following...
> The memo filed does not contain what is shown in the list below.
> Do I have to use a different type of record?  I am
> using the MemoRecord as per what is in the textcond.java file.
>

I may be misunderstanding your problem, but it seems worthwhile pointing out
that each database on a Palm OS device can contain whatever its author wants
to put in it.  The only major limitation is that each record can contain no
more than 64KB of stuff (actually, a tiny bit less).  The structure of each
record in a database can be anything.  So, there is absolutely no reason to
assume that the record structure used by the other database is anything at
all like the structure of the MemoDB.  In fact, it would be very surprising
if the structure was the same, unless the other db was just a copy of the
memo db.


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