🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ADO Database Opening Problem

#958
From: John Borchers
Date: Wed, 16 Feb 2005 16:35
26 lines
1662 bytes
All,

Using BCB6, MS Access Tables 2000

The first time of every run I try to open a TADOTable with direct access I 
get the following error message:

...raised exception class EVariantTypeCastError with message 'Could not 
convert variant of type (Null) into type (String)'

from my line:

ADOTable1->Active=true;

This error happens with or without data in rows. In other words, with data 
in rows no columns are NULL so this error shouldn't be possible.

This error only shows up with the IDE running. It doesn't actually throw an 
exception within the program. After this line, the table is indeed active 
and can be written and read from.

Anyone know what's going on here?

TIA,

John 
Technical Details
Message-ID: <42137669$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,cd22766f8de860a7,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "John Borchers" <jborchers@notmail.com>
From: "John Borchers" <jborchers@notmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: ADO Database Opening Problem
Date: Wed, 16 Feb 2005 11:35:53 -0500
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 63.116.149.114
Message-ID: <42137669$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108571753 63.116.149.114 (16 Feb 2005 08:35:53 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail