Solved

Data Module Inheiritance

Posted on 1997-06-06
1
141 Views
Last Modified: 2010-05-19
I have created a class that inheirits from TDataModule.  This works OK.  However, classes that inheirit from this class automatically include a bunch of junk in the .DFM file, like font settings.  Since these are data mdules, they don't have a font, and thus I get an error when I try to create them.  I can modify the .DFM file and recompile, but I have to do this every time I make a change to the underlying data module code, which is a royal pain.  How can I inheirit from TDataModule and not have to go through this all the time?
0
Comment
Question by:Clayton Neff
1 Comment
 

Accepted Solution

by:
brittain earned 100 total points
ID: 1336842
I realize this is not the answer you want to hear, but ...
having previously spoken to the Delphi Product Manager on this topic, he said, essentially, at this time neither TForm or TDataModule should be extended as we do with the other VCL components.  The reason being the additional work Delphi does streaming to the .DFM, and other hidden things.  This may improve in the future, but not as of D3.

Of course, with the source all things are possible.  I was strongly advised not to extend these classes.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Internet Explorer View Settings Question 15 111
code issue 8 126
Delphi selector screen 2 78
tidtcpserver connection lost handle 2 83
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now