Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Learn How To Quickly Build A Key Value Store With SQLite In This Delphi FireDAC.SQLiteIniFile Sample App

Working with INI file becomes common in many Mobile, IoT, Desktop Applications. How about connecting SQLite database to Read/write to an INI file in Delphi/C++ Builder applications? This can be done easily with help of FireDAC.SQLiteIniFile Sample app.

FireDAC.SQLiteIniFile Sample uses FireDAC to connect to an SQLite database that emulates the structure and the operations of an INI File. This application reads and writes data to an INI file using a FireDAC database connection as its storage medium, instead of a plain text file.

You can find Delphi code samples in GitHub Repositories. Search by name into the samples repositories according to your RAD Studio version.

Components used in the Sample :

Implementation Details:

  1. Run the sample application, and Click the Write to IniFile button and the program will create a database (IniFile.db) and fill it with data.
  2. The data from the database that was just created is displayed in a TDBGrid.
  3. You can manipulate the data with a TDBNavigator.
  4. Click the Read from IniFile button to display the data from the database in a TMemo and the image from the database in a TImage.

Check out the full article in the DocWiki about the FireDAC SQLiteIniFile Sample.

<strong>FireDACSQLiteIniFile Sample App<strong>

Check out the full source code for the FireDAC.SQLLiteIniFile projects for Delphi and C++Builder over on GitHub.

Exit mobile version