I was also thinking this (passing the dataset) is the cleanest way, I hadn't
tried it yet as I was uncertain how Delphi handles passing the
TClientDataSet object behind the scenes eg as a parameter to a procedure in
form2....as the dataset can be quite large.  I assume it passes a reference
to the dataset not the entire data...however as a relative newbie to
datasets I know assumptions can bite back....(for instance I read up quite a
lot on how strings are handled in Delphi before I got too heavily into using
them)

Can someone kindly confirm the cleanest (=efficient and tidy) way to pass
the dataset to a procedure in another form if not as a parameter to the
procedure in the other unit.  Any in-depth references to how Delphi handles
these operations and best practices appreciated too - thanks.

John


-----Original Message-----
From: Conor Boyd [mailto:[EMAIL PROTECTED] 
Sent: Friday, 10 February 2006 10:17 a.m.
To: [EMAIL PROTECTED]; NZ Borland Developers Group - Delphi List
Subject: RE: [DUG]Scope


John,

Without seeing more of your code, I think you'd be better if your general
printing routine gets passed a TClientDataSet object which it uses, rather
than ferreting about in a form's innards. 

HTH,

Conor 


_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to