In this topic we will talk about Delphi Paradox Connection. One of the reasons why Delphi is preferred is that it has good database support and makes it easier to write database programs. Delphi database program is difficult to write and experience, but on the other hand without writing code can also make a database program.


We can consider the database as tables in which data is stored. The tables consist of fields such as name, surname, telephone. All these fields form a record. The database can consist of one table or more than one table. You can have databases with hundreds of tables. You can keep 100 records in these tables as well as keep millions of records. Index (index) is used to speed up databases. A table can have one or more indexes. When selecting indexes, it is a good idea to select the areas that you are trading most.


Aliases are aliases that hold the address of the tables. With this structure, you don't have to enter the address of the table every time. You specify Alias ​​in the folder where you will save the tables before the application starts.


BDE Administrator Operations


  1. Right-click the database Alias ​​window, say New.
  2. Select STANDARD as the Database Driver Name.
  3. Choose a memorable name as the name of the Alias.
  4. Click your new link, click PATH, and select the directory where the data will be saved. The databases will be saved in this directory.
  5. Click on the top of Alias. Save Save As, save.
  6. Click the icon to the left of the Alias ​​and turn the icon to green.
  7. Close BDE Manager, you're done here.


Database Desktop Operations

  1. Create a new table from File> New> Table.
  2. Select Paradox 7 as Table Type. The table creation window will open.
  3. Set the fields and types in the table from this window.
  4. Select an area as KEY. Save with Save As.
  5. As Alias, select the object you created and save it to the folder that opens.
  6. The record type remains Paradox. Name and save the database file.
  7. Open the table you saved by choosing File> Open> Table,
  8. You can check if there is a problem by saying Table> Edit Data.
  9. You can close Database Desktop.


Delphi 7 Operations

  1. In the toolbox, switch to the BDE tab and place the leading Table object on the form.
  2. When the Table object is selected, set your database name to Database Name from the Properties as Table name, and set the Active value to True.
  3. Right-click the Table and say Fields Editor, the empty window will come.
  4. Right-click Add All Fileds. If the data you entered in the database is displayed, there is no problem.
  5. Switch to DataAccess, set the Datasource object to the form and set the Dataset property to Table1 from Properties.
  6. Switch to the DataContorls tab and add the Grid object to the form.
  7. We set properties to Datasource: datasource1.
  8. If the data came into the Grid object, there is no problem.