[DUG] Cant convert varianttypecastError to OleStr

Jeremy North jeremy.north at gmail.com
Fri May 19 13:08:48 NZST 2006


Do you have Variants in the uses clause?

On 5/19/06, Phil Scadden <p.scadden at gns.cri.nz> wrote:
> Got a strange one.
>
> This line:
>        ADOTable1.Locate('Alarmtime',VarArrayOf([dt]),[]);
>
> generates 'Could not convert variant of type (Array Variant) into type (Olestr).
> (dt is TDateTime)
>
> Any ideas what is going on???
>
>
> ----------------------------------------------------------
> 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
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>



More information about the Delphi mailing list