First you do realise that its a Claytons offering.... you can share it
between several units, but only one form can use a so-called shared dataset
at a time.

You definitely cant do things like launching two instances of a particluar
form.

I open the datasets in the Databases's oncreate.

Additionally, the code in the dpr file looks like ...


Application.CreateForm (mainform)
Initalization
MainForm.Show
Application.CreateForm (Datamodule)
more initialization
Application.Run

-----Original Message-----
From: Cheng Wei <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Monday, 4 September 2000 15:13
Subject: [DUG]: TApplication.MainForm


Hi all,

Does the main form HAVE TO BE the first form created in the main body of the
application?

The reason of this question is: the main form's OnCreate event handler opens
datasets created in the Data module (I want these datasets to be shared
among several units).

Cheers
Cheng

---------------------------------------------------------------------------
    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"


---------------------------------------------------------------------------
    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"

Reply via email to