Forum > General

How i can to access to .DBF files from Lazarus?

<< < (2/2)

bracara:
The structure of dBase files is quite simple and it's fairly easy to write the code to access them. A couple of years ago when I thought Kylix 2 was the key to writing software in Linux, I started designing a set of components to access dBase IV files. I designed them in Delphi 1 and they work imperfectly under Delphi 1. Even started the documentation! :!:
I did test them (adapted to inherit from CLX components) under Kylix and was able to read and write to a dBase file with a test Kylix app. Unfortunately I appear to have lost the Kylix version but the 16 bit Delphi version can be downloaded from http://www.lingua-z.co.uk/software/sdb.zip.
It should be fairly simple to adapt the code to work under Lazarus. I just tried including sdb.pas in a Lazarus project and there are references to a few Win16 units which would need removing. The simplest thing would probably be to lift out the code which the TsdbTable component uses and access the datafile using its methods.
Let me know if it's any use.

mhess:
It isn't exactly open source but maybe you can talk to the developer what his views are of using it with open source. The source code is available with it so it could be modified to be used with Free Pascal. I have used it successfully with Delphi.

http://www.softsci.com/topazp.htm

Navigation

[0] Message Index

[*] Previous page

Go to full version