[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Data Module Inheiritance

Posted on 1997-06-06
1
Medium Priority
?
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
brittain earned 400 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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