Additional
dbCAP
AnyDAC
ThinDAC
NCOCI8
Topic: Invalid variant type conversion
Invalid variant type conversion
Posted: 2002/06/04 07:34
 
Hi! When I want to use a function TQuery.Locate (NCoCi8-V1.0.2: e.g. Query1.Locate('LINE;DATE',VarArrayOf(['SL01','4.6.2002']),[])
in my application I get in runtime of this application following two messages:

1] Invalid variant type conversion
2] Break It!

Is anybody able to help me with this problem ? Thanks ...
RE: Invalid variant type conversion
Posted: 2002/06/05 01:06
 
Maybe there's something wrong with date format?
try this:
var
temp : TDateTime
begin
...
temp := StrToDate('4.6.2002')
Query1.Locate('LINE;DATE',VarArrayOf(['SL01',temp]),[])

RE: Invalid variant type conversion
Posted: 2002/06/05 04:09
 
Great!!! Your solution is correct. Thank you very much ...