<div>Dear John,</div>
<div>&nbsp;</div>
<div>I have seen code where someone forgot to put the unit in their second form's uses clause, and then put DB instead of <span class="link">DBClient. They went around in circles.</span><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/02/06, <b class="gmail_sendername">Conor Boyd</b> &lt;<a href="mailto:Conor.Boyd@trimble.co.nz">Conor.Boyd@trimble.co.nz</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Your assumption is correct.<br><br>You'd be passing a reference to the ClientDataSet, not a copy.<br><br>Cheers,
<br><br>C.<br><br>-----Original Message-----<br>From: John Bird [mailto:<a href="mailto:johnkbird@paradise.net.nz">johnkbird@paradise.net.nz</a>]<br><br>I was also thinking this (passing the dataset) is the cleanest way, I
<br>hadn't tried it yet as I was uncertain how Delphi handles passing the<br>TClientDataSet object behind the scenes eg as a parameter to a procedure<br>in form2....as the dataset can be quite large.&nbsp;&nbsp;I assume it passes a
<br>reference to the dataset not the entire data...however as a relative<br>newbie to datasets I know assumptions can bite back....(for instance I<br>read up quite a lot on how strings are handled in Delphi before I got<br>
too heavily into using<br>them)<br><br>Can someone kindly confirm the cleanest (=efficient and tidy) way to<br>pass the dataset to a procedure in another form if not as a parameter to<br>the procedure in the other unit.&nbsp;&nbsp;Any in-depth references to how Delphi
<br>handles these operations and best practices appreciated too - thanks.<br><br>-----Original Message-----<br>From: Conor Boyd [mailto:<a href="mailto:Conor.Boyd@trimble.co.nz">Conor.Boyd@trimble.co.nz</a>]<br><br>Without seeing more of your code, I think you'd be better if your
<br>general<br>printing routine gets passed a TClientDataSet object which it uses,<br>rather<br>than ferreting about in a form's innards.<br><br>_______________________________________________<br>Delphi mailing list<br><a href="mailto:Delphi@ns3.123.co.nz">
Delphi@ns3.123.co.nz</a><br><a href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a><br></blockquote></div><br>