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.
Paul
On 19/05/06, Phil Scadden <[EMAIL PROTECTED]> wrote:
> This line:
> ADOTable1.Locate('Alarmtime',VarArrayOf([dt]),[]);
Okay, I have found it.
Locate can take an array of key fields to search for. However, when there
is only one (as above), the VarArray botches it.
Fix is something like
dtvar:variant;
...
dtvar := dt;
ADOTable1.Locate ('Alarmtime',dtvar,[]);
----------------------------------------------------------
Phil Scadden, Institute of Geological and Nuclear Sciences
764 Cumberland St, Private Bag 1930, Dunedin, New Zealand
Ph +64 3 4799663, fax +64 3 477 5232
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
