> I don't know what utilities there are to do it, but I make my own .pdb files
> from text files. Basically, looking at the pdb file format, you have to
> create the header file and then store your text data as records. If you're
> just trying to make something that you can read on the palm, then you
> probably should look for one of those DOC converters or something. If
> you're actually making a database you want to use with a program, you may
> have to actually create it. I've seen a set of predone functions for making
> pdb files, but, like said, I found it easier to just make my own. The steps
> are basically as follows:
>
> 1 - Create the header data. It must have exactly the right number of bytes
> in it or you will end of with an invalid file.
>
> 2 - You will have to determine the size of each of the records, because the
> records list requires you to input the size of each record you are going to
> enter. I believe the records list follows the header.
skip all this.. :) and use a set of Java class files called
files2pdb and pdb2files - they create the headers for you :)
you just store the records as files and it does the hard work
for you :)
web search for em.. if you cannot fine.. email me :>
> 3 - Then you add the record data to the file and, assuming you didn't write
> too many bytes anywhere or leave something major out, it should be fine.
use the Java classes above - problem solved.
> Key point: You will need to do a little endian/big endian conversion on the
> numbers assuming you have an Intel based processor.
:> nope :> use Java.. :)
> Outside of that, converting a text file to a pdb file is basically reading
> data from the text file and writing it in the right format to a file with a
> .pdb extension.
key point? use Java :>
i use Java for all my NON palm stuff.. :) i create data sets, PDB
files and even do my registrations using Java.. i have never run
into any problems - except my own interpretation of the formats :>
ps: for those wondering about the FileStream errors (>64K dies),
here is the answer :)
- i used a Word as an offset that i would seek into the file
with.. all of us know that a word has a range of 0..65535
:> i think thats all i need to say about that :>
- it even works on OS 3.5 (as long as they dont change the
API's) :>> i tested this myself.
as soon as i clean my Java code up a bit.. i will release
some Java code that will create a PDB file that can be used
for filestreaming on the PalmOS.
if you are interested in getting this code.. let me know! :P
cheers.
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 26 10 16 11