Objectmix
Tags Register Mark Forums Read

D2006 - invalid variant type : Delphi

This is a discussion on D2006 - invalid variant type within the Delphi forums in Programming Languages category; Hello I’ve a problem with TADOQuery control on Windows 2000. Whenever I try to post record’s changes that alters content of any of VARCHAR fields to the database (MS SQL 2005 Express) I got an error “invalid variant type”. I’ve already tried different version of MDAC, changed connection type to ODBC SQL connection, SQL Native connection and the problem is still the same. I’ve quite big application now, and can’t find solution. Maybe somebody knows the answer? There is nothing in that subject over internet… PS. I've also tried to do .FieldByName().asWideString:=... no luck... I’m using Delphi 2006 Jacek tiger@rubikon.pl...


Object Mix > Programming Languages > Delphi > D2006 - invalid variant type

Reply

 

LinkBack Thread Tools
  #1  
Old 05-31-2009, 02:09 AM
Junior Member
 
Join Date: May 2009
Posts: 0
ergen77 is on a distinguished road
Default D2006 - invalid variant type

Hello
I’ve a problem with TADOQuery control on Windows 2000. Whenever I try to post record’s changes that alters content of any of VARCHAR fields to the database (MS SQL 2005 Express) I got an error “invalid variant type”. I’ve already tried different version of MDAC, changed connection type to ODBC SQL connection, SQL Native connection and the problem is still the same. I’ve quite big application now, and can’t find solution. Maybe somebody knows the answer?

There is nothing in that subject over internet…

PS. I've also tried to do .FieldByName().asWideString:=... no luck...

I’m using Delphi 2006
Jacek
tiger@rubikon.pl
Reply

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
BDS2007 Variant gets Cleared, "Invalid Variant Type" error dialog usenet c++ 3 07-03-2008 11:25 AM
MIDL VARIANT-type to proper C# type usenet CSharp 2 09-26-2007 03:58 PM
Variant data type usenet CSharp 3 09-17-2007 05:31 AM
variant data type usenet Fortran 6 07-05-2007 02:18 PM
detect invalid variant usenet DOTNET 0 04-14-2006 03:14 AM


All times are GMT -5. The time now is 08:48 AM.

Managed by Infnx Pvt Ltd.