[DUG] inherited datamodules

Alister Christie alister at salespartner.co.nz
Fri Jan 25 15:14:59 NZDT 2008


I'm having a little trouble with inherited datamodules.  What I was 
wanting to achieve is to have the same form(s) but swap the datamodule 
out from underneath it.  I was going to do this by having a kind of 
class factory to create the datamodule.  What I've got looks something like:

type
  TMyDateModule = class(TDataModule)....
and in another unit
type
 TMyDataModule1 = class(TMyDataModule)

what I ant to be able to do is
MyDataModule := TMyDataModule1.Create...
which works fine except none of the data is visible on the form
however with MyDataModule := TMyDataModule1.Create... the data is visible.

Does any of this make sense?
I was hoping this could a technique to help with my BDE migration (which 
I keep putting off).

-- 
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington 


More information about the Delphi mailing list