Project setup (Delphi)

<< Click to Display Table of Contents >>

Navigation:  Application development > Introduction to BDE programming > BDE Programming in Delphi >

Project setup (Delphi)

Previous pageReturn to chapter overviewNext page

Prior to writing the Delphi code to use BDE API functions for the database access, the following steps must be done:

1.Create a new Delphi 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 Delphi IDE.
3.In the unit for the project’s main form (by default, Unit1), add the BDE wrapper unit (named "BDE") to the Uses section. This unit defines all of the BDE types and constants for use in the Delphi program.
4.Add a procedure to act as the 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.

 

hmtoggle_plus1Application Development