> 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