🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #2600

Re: EVariantTypeCastError

#2600
From: Hans J�nsson
Date: Mon, 21 Apr 2003 17:52
24 lines
2118 bytes
I have made a simple mistake - I hadn't added the fields of the table.
greetings hans.
"Hans J�nsson" <042140773@telia.com> skrev i meddelandet
news:3e9db3aa@newsgroups.borland.com...
> Hello!
> I haven't worked with MS Access before but now I have a database in Access
> and I
> have created a simple program connecting to it with ADO components. I have
a
> table, a connection and a data source. On the form a grid. It compiles and
> build without a hitch, but when I run the program I get Project
ADOProj.exe
> raised exception class EVariantTypeCastError with message ' Could not
> convert variant type (Null) into type (String). The arrow in front of the
> "blue band" points at the line : TDataModule(Owner), the last part of the
> fastcall line that begins the data module. I looked up the error without
> getting much wiser. And if I click OK on the message box and Run|Run the
> program runs. Any ideas on what I can have missed out on? I am not used to
> work with connection strings (except in ASP). greetings hans. I should add
> that the program runs without problems from Run on the Start menu of
Windows
> XP Pro. greetings hans
>
>
Technical Details
Message-ID: <3ea42fce@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e9db3aa@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,d51f9c4146a3da89
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-04-21 11:00:50 PST
From: "Hans J�nsson" <042140773@telia.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e9db3aa@newsgroups.borland.com>
Subject: Re: EVariantTypeCastError
Date: Mon, 21 Apr 2003 19:52:20 +0200
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 212.181.186.8
Message-ID: <3ea42fce@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050947534 212.181.186.8 (21 Apr 2003 10:52:14 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail