Solved

Data Module Inheiritance

Posted on 1997-06-06
1
139 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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