In an OO world you could try OO :) Make sub-classes of the portions which are 
different customisations and create the appropriate class
at runtime.

ie 
TMainFormAbstract

TMainFormConcrete1
TMainFormConcrete2

-----Original Message-----
From: Ross Levis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 January 2003 5:22 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: defines


I have an application for which I want to split into 2 separate brand 
names with a different application title, splash screen & about form, 
and some small differences in code.  What would be the easiest way to go 
about it so I don't have to maintain 2 sets of code.

Do {$Defines} in the mainform work in all other forms?  Do defines work 
in dpr files?  I tried putting a define in the dpr and using it in the 
mainform but this doesn't work.  Should I use 2 separate dpr files?  Any 
suggestions.

Thanks,
Ross Levis.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to