Prior to writing the C++Builder code to use BDE API functions for the database access, the following steps must be done:
| 1. | Create a new C++Builder project. |
| 2. | To the project’s main (and only) form, add one TButton (Button1) and one TLabel (Label1). Add these two components from the Standard tab of the Component Palette of the C++Builder IDE. |
| 3. | In the unit for the project’s main form (by default, Unit1), add the BDE wrapper header file (BDE.HPP) to the Uses section. This unit defines all of the BDE types and constants for use in the C++Builder program. |
| 4. | Add a handler for the TButton component’s OnClick event. This event handler will contain the BDE API code to retrieve a field’s value from a table and assign it to the Caption property of the TLabel. |