<div>That what was standing out to me when I mistook the [] for TLocateOptions as an empty array element or something, I got stuck with the same problem somewhere else.</div>
<div> </div>
<div>Paul<br><br> </div>
<div><span class="gmail_quote">On 19/05/06, <b class="gmail_sendername">Phil Scadden</b> <<a href="mailto:p.scadden@gns.cri.nz">p.scadden@gns.cri.nz</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> This line:<br>> ADOTable1.Locate('Alarmtime',VarArrayOf([dt]),[]);<br><br>Okay, I have found it.
<br><br>Locate can take an array of key fields to search for. However, when there<br>is only one (as above), the VarArray botches it.<br><br>Fix is something like<br>dtvar:variant;<br>...<br>dtvar := dt;<br> ADOTable1.Locate
('Alarmtime',dtvar,[]);<br><br><br>----------------------------------------------------------<br>Phil Scadden, Institute of Geological and Nuclear Sciences<br>764 Cumberland St, Private Bag 1930, Dunedin, New Zealand<br>Ph +64 3 4799663, fax +64 3 477 5232
<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>