Saturday, October 3, 2009

Delphi Basics : Using Inheritance in Dephi 7 - A Simple Example

1. Create a Standard Form as the Ancestor Form.

In the above example, I have added a InfoPower TwwDBNavigator,TwwDBGrid controls as well as a ADODataset and a DataSource all duly connected to each other.

2. Select File/New/Others to get the following Dialog

3. Click OK to get the inherited Form StdViewForm1 which looks exactly like the form that we created in (1) above.

4. Then, just adjust the command text property to read from another table and bingo, you have another module ready to go. Then just select File/Save As and add it to the menu item of your choice. That's it !

1 comment:

Kofi said...


I just wanted to say that I really enjoyed your blog and this post. You make some very informative points. Keep up the great work!

Delphi development

Welcome to Delphi... Delphi... Delphi

I have been a Delphi Developer since Delphi 3 when I finally decided on Delphi in 1996 as my programming language of choice for the Windows 32 environment. So what have I created with Delphi ?

Would you believe that I had single-handedly created a full ERP2 system comprising ERP+CRM where ERP=Sales Distribution+MRP+ Procurement Management+Planning & Production +Finacial Management + Human Resources Management System.

Since 15th February 2009, we have visitors from more than 60 countries including Malaysia, United States, Brazil, Italy, Australia, India, Turkey, Russian Federation, Spain, Indonesia, Hungary, South Africa, Germany, Mexico, Argentina, Singapore, Saudi Arabia, Colombia, Czech Republic, Canada, France, Croatia,Thailand, Bulgaria, Slovenia, Hong Kong, Poland, Sri Lanka, Chile, Japan, Austria, Ukraine, Azerbaijan, Ireland, Tunisia, Greece, Taiwan, Egypt, Bolivia, Paraguay, Iran, Islamic Republic , Morocco, Angola, Belgium, Portugal, Norway, Venezuela, United Arab Emirates, Algeria, Korea, Republic Of, Slovakia, Georgia, Lebanon, Macedonia, Sweden, Philippines, Vietnam, Dominican Republic