🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

OleVariant HELP! --> Cannot initialize 'const Variant &' with 'Variant()' HELP

#4049
From: Tim
Date: Tue, 23 Apr 2002 18:48
24 lines
1485 bytes
Dear All:

I am getting the above mentioned error in Builder v6, worked ok in v5

// retrieve columns for a given table
//...
AnsiString selTable = "MY_TABLE_NAME";
int bounds{} = {0,3};
OleVariant adoVariant(bounds, 1, varVariant);

// ...

// ERROR occurs on next line
adoVariant.PutElement(Unassigned, 0);
adoVariant.PutElement(Unassigned, 1);
adoVariant.PutElement(WideString(selTable), 2);
adoVariant.PutElement(Unassigned, 3);
// ...
ADOConnection->OpenSchema(isColumns, adoVariant, EmptyParam, ADODataSet1);
//...


Thank you
TS
Technical Details
Message-ID: <3cc5ab40_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,84e88fd7fa6e6128,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-04-23 11:52:30 PST
Reply-To: "Tim" <timsmith_s@hoohoo.com>
From: "Tim" <timsmith_s@hoohoo.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: OleVariant HELP! --> Cannot initialize 'const Variant &' with 'Variant()'  HELP
Date: Tue, 23 Apr 2002 13:48:55 -0500
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 12.248.162.212
Message-ID: <3cc5ab40_2@dnews>
X-Trace: dnews 1019587392 12.248.162.212 (23 Apr 2002 11:43:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews