Sunday 21 March 2010

Delphi - Interbase Tutorial # 5 : Create a user interface for manipulating table using DBEdit

In the previous tutorial we created a user interface for manipulating table using DBGrid. Now we’re going to create one using DBEdit. We can use our previous program. Replace the DBGrid in the previous program with some labels and DBEdits, like the picture shown below :

Set the properties of the labels and DBEdits like tables below :

Label1

CaptionID

Label2

CaptionNAME

Label3

CaptionAGE

Label4

CaptionPHONE

DBEdit1

DataSourceDataSource1
DataFieldID

DBEdit2

DataSourceDataSource1
DataFieldNAME

DBEdit3

DataSourceDataSource1
DataFieldAGE

DBEdit4

DataSourceDataSource1
DataFieldPHONENUMBER

Use the codes for the OnClick event of the buttons. Do not change the properties of Form, Table, DataSource and Buttons. Run the program, and now we can manipulate the ‘employee’ table using Buttons and DBEdits.

Go to Previous Tutorial or Next Tutorial

0 comments:

Post a Comment

These links are part of a pay per click advertising program called Infolinks. Infolinks is an In Text advertising service; they take my text and create links within it. If you hover your mouse over these double underlined links, you will see a small dialog box containing an advertisement related to the text. You can choose to move the mouse away and go on with your browsing, or to click on the box and visit the relevant ad. Click here to learn more about Infolinks Double Underline Link Ads.