[DUG]Scope

John Bird johnkbird at paradise.net.nz
Fri Feb 10 12:13:27 NZDT 2006


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:Conor.Boyd at trimble.co.nz] 
Sent: Friday, 10 February 2006 10:17 a.m.
To: johnkbird at paradise.net.nz; 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 




More information about the Delphi mailing list