Second, create an app
In visualization programming, the form is the basic component constituting the application system, so the application of the application can be said to be the form of the form. In BDE, we can complete these work to Database Form Wizard.
Step 1: We call the main menu "Database | FORM WIZARD" in BCB to open the following Form Type Select window.
Screen description:
1. Form Options option group:
1) CREATE A Simple Form: Establish a database program that can simply do search, new, and modified;
2) CREATE A MASTER / DETAIL FORM: The logical association is generated by using the values in the two databases to do with each other. This can be queried in the two databases through the Master data table to the Detail data table to get the same value of the same value as the DETAIL data table, so you can query the data in two databases.
2. DataSet Option option group:
1) CREATE A FORM USING TTABLE Objects: Allowed database programs can only be used for retrieval and enlargement of data tables;
2) CREATE A FORM USING TQUERY Object: Allows the query program of the database to be created in your program, for example, select the specified field to make a complete data query.
Step 2: The following figure appears after clicking Next:
(Wang Yan's document, haha, it is my girlfriend's documentation)
Select the data table you want to use in this form.
Step 3: After selecting a good table, press NEXT to select the form.
All fields are listed in the left box in this form, we can move around the four buttons in the middle, and choose the field you need to select in the right.
In the right box, you can also adjust the order of the fields through the two up and down buttons.
Step 4: After selecting the field, press Next to appear the following form.
Here is the way you choose a field, explain these three items:
The name of the Horizontally: field is displayed by left to right. In fact, it is put DBNAVIGATOR, LABEL, and DbEdit three visual components on the form.
Vertically: The name of the field is placed downward. In fact, it is also put DBNAVIGATOR, LABEL, and DBEDIT three visual components on the form.
In a Gird: Field is displayed in a table (square). In fact it is placed on the form of DBNAVigator and DBGRID.
Step 5: After selecting, click Next, the following form will appear.
In the form of the form, the system provides three options: 1) Whether to create a home form; 2) Creating only a form; 3) Creating a form and creates a data template. Choose yourself as needed :)
Step 6: After selecting, point finish to complete the design. The set interface is as follows:
Step 7: Often to the above interface can not satisfy us, we can adjust their position at arbitrarily. I adjusted a form and give the following:
In this way, the horizontally in the fourth step we want to choose is actually the same.
When we don't move one soldier, we have made an app. This method is the design method used in most cases of the C Builder and Delphi Curriculum Design and System Development Case. I don't understand how people think that BDE is useless?
As for the association, we can use the generated master / slave window in the first step, it is more than one step field association. Other design and is above, just more than two times, I will rely on this, It seems to be a bit reluctant, and the elegant BDE is that she is convenient for her dynamic creation, which is the key to it is more flexible than ADO and loves.
(Fail)