Accuracer: The First And Only BDE Alternative
Client-Server Single-File Embedded Database for Delphi / C++Builder / Kylix
The following steps are general instructions for setting up a table component at design time. There may be additional steps you need to tailor a table's properties to the requirements of your application. If you need in-memory table you should not create a database component, just set InMemory property to true.
To create a database component,
| 1. | Place TACRDatabase component from the Accuracer page of the Component palette in a data module or on a form, and set its DatabaseName property to a unique value appropriate to your application.
|
| 2. | Set DatabaseFileName property to the path to the database file. You can use OpenDialog if you double click on this property in Object Inspector.
|
To create a table component,
| 1. | If you need an in-memory table set InMemory property to True, otherwise set DatabaseName property to specify which TACRDatabase component will be used for connecting to the database file.
|
| 2. | Place TACRTable component from the Accuracer page of the Component palette in a data module or on a form, and set its Name property to a unique value appropriate to your application.
|
| 3. | Set the TableName property to the name of the table in the database.
|
To access the data encapsulated by a table component,
| 1. | Place a data source component from the Data Access page of the Component palette in the data module or form, and set its DataSet property to the name of the table component.
|
| 2. | Place a data-aware control, such as TDBGrid, on a form, and set the control's DataSource property to the name of the data source component placed in the previous step.
|
| 3. | Set Connected property of TACRDatabase component to True if you use table from the database file. Skip this step if you use in-memory table.
|
| 4. | Set the Active property of the table component to True.
|
|