Solved

Data Module Inheiritance

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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