Cheng
>
> I think it's the IF statement causes the extra line to be inserted into
the
> .dpr file, because it thinks that your MainForm might not get created at
> all. I use a slightly different construct which looks like this:
>
> while not ADataModule.Active do Application.ProcessMessages;
> Application.CreateForm(TMainForm, MainForm);
> Application.CreateForm(TDBUpdateErrorDlg, DBUpdateErrorDlg);
>
Thanks
Methinks you my be right - I'll try that - This IDE is a little to clever
for my liking
(Imaging parsing the DPR to check for conditional creation!)
Regards
Neven
---------------------------------------------------------------------------
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"