Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using sql with delphi6 - evariant error

Status
Not open for further replies.

yomyom

Programmer
Dec 23, 2002
119
GB
hello all,
How do I overcome this error?
I'm using sql tables vwith this definition:
create table.....
name varchar (20),
number int constraint pknumber primary key ....
.....
however, when I try to run delphi using ado connection to the sql table i get this error at startup:
exceptionclass evarianterror with message "invalid vasriant type conversion".
Can anyone rescue me?
yomyom.
 
"Invalid Variant Type Conversion".

Some fields in your table have been assign a different value from your Delphi application as it should.

ex.
Name is varchar but you have assigned in Delphi as this:
'Name' := 123;

mha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top