Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1105039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:34:10+00:00 2026-05-17T01:34:10+00:00

In Delphi for Win32, how to read and write a dbf file in a

  • 0

In Delphi for Win32, how to read and write a dbf file in a native way, without the BDE? I know there are some components available in the web, but I have never used any of them, so I don’t know which to choose (if any).

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:34:10+00:00Added an answer on May 17, 2026 at 1:34 am

    You can use ADO to access a DBF File

    See ths sample code (using an TAdoConnection and TAdoDataSet components).

    var
    dbf_folder : string;
    begin
      dbf_folder:='c:\bdd';//set your dbf folder location here 
      ADOConnection1.LoginPrompt:=false;
      ADOConnection1.ConnectionString:=Format('Provider=Microsoft.JET.OLEDB.4.0;Data Source=%s;Extended Properties=dBase IV;',[dbf_folder]);
      try
      ADOConnection1.Connected:=True;
      ADODataSet1.CommandText:='Select * from file.dbf'; //make your SQL query using the name of the dbf file
      ADODataSet1.Open;
       while not ADODataSet1.eof do
       begin
       //do your stuff here
       //ADODataSet1.FieldByName('').AsString
       ADODataSet1.Next;
       end;
      except
        on E : Exception do
          ShowMessage(E.Message);
      end;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to use GnuPG with Delphi (Win32). I need to sign some file with
How to use in C# function from Win32 DLL file made in Delphi. When
I'm trying to divide my monolithic, Delphi-Win32 app in libraries, so I get some
I know of the existence of DUnit for Delphi win32. What I'm after is
I'm translating the following C++ component to Delphi: http://borland.newsgroups.archived.at/public.delphi.vcl.components.using.win32/200708/0708225318.html But it's not working... I'm
Does anyone know about an ORM or something similar for Delphi Win32.
Is there any .NET string.format compatible function for Delphi Win32 ? I want to
I am looking for some starting points integrating a Win32 Delphi application's data with
I am working on a C++/Win32 project, and I have some Delphi code from
Does anyone know of password strength meter component for delphi Win32? Important : must

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.