Search code examples
linuxdelphidbfvisual-foxpro

Connect to remote dbf file with lazarus on linux


I need migrate a windows application made with delphi xe3 to a linux platform using Lazarus. This application connect to dbf files hosted on a windows server 2008.

I'm trying to connect tdbf component to the server but i can't. The documentation does not tell anything about remote connections.

Can you recommend me some other options to do that?


Solution

  • Dbf1.filePath := '192.160.90.100:/F/shared-folder'; This looks like an NFS path which I don't believe TDBF supports. You will need to mount the relevant folder containing your DBF files on your local file system for TDBF to be able to access it properly.

    However, I would strongly recommend you migrate your application away from DBF files and to a proper SQL-based client/server DBMS like Firebird, mySQL or PostgreSQL. There really is no valid reason for using 25+ year old desktop databases nowadays.