From: Emmanuel S. <se...@ac...> - 2003-04-16 10:03:48
|
On Tue, Apr 15, 2003 at 08:03:59PM +0200, Uwe Kloß wrote: > > As an attachment please find: > 1. the module DB.pm and (put it in the directory Palm where PDB.pm is) > 2. test-pdb.pl (example how to use it) and > 3. Betriebskosten.PDB (example database needed by 2.) [seyman@munshine seyman]$ perl test-pdb.pl fields: 11 records: 13 Number of fields: 11 Field names: Datum,,,,,,,,,, Datum - Art 5.7.2002--- 9.7.2002--- 20.7.2002--- 15.8.2002--- 24.8.2002--- 25.8.2002--- 13.9.2002--- 14.9.2002--- 15.9.2002--- 16.9.2002--- 25.9.2002--- 7.10.2002--- 30.10.2002--- All tests are ok The field names output looks way off, IMHO. > I have 2 (Pilot-Db) databases one has 58 and the other B8 (both hex) as > AppInfo offset. They have different record numbers. So this might be due > to something called record index. The second one is my test DB. (0xB8=184) Looking into this, I realize that I've worked on pilot-db conversion scripts more than I've used pilot-db itself. :-) One thing I've noticed about the AppInfo blocks in my pdf files is that their offset is always a multiple of 4 (and often a multiple of 8). I'm guessing those 2 bytes are filers and that the correct thing to do is ignore them. Emmanuel |