🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #74

How can use Variant::PutElement(const Variant& data, const int i1);

#74
From: Emmanuel
Date: Tue, 22 Mar 2005 23:37
22 lines
1566 bytes
How can use Variant::PutElement(const Variant& data, const int i1);
I see the sample
void __fastcall TAppServerModule::Provider1GetDataSetProperties(TObject
*Sender, TDataSet *DataSet; OleVariant &Properties)

{
  int Bounds[2] = {0,1};
  Properties = VarArrayCreate(Bounds,1, varVariant);
  Variant NameValueDelta[3];
  NameValueDelta[0] = "TimeProvided";
  NameValueDelta[1] = Now();
  NameValueDelta[2] = true;
  Properties.PutElement(VarArrayOf(NameValueDelta,2),0);
  NameValueDelta[0] = "TableSize";
  NameValueDelta[1] = DataSet->RecordCount();
  NameValueDelta[2] = false;
  Properties.PutElement(VarArrayOf(NameValueDelta,2),1);

}

the value i1, when should be 0,when should be 1;
Technical Details
Message-ID: <4240ab53$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,50792d87e65ddb24,start
X-Google-Attributes: gidfcd2b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Emmanuel" <emmanuel@erphk.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: How can use Variant::PutElement(const Variant& data, const int i1);
Date: Wed, 23 Mar 2005 07:37:28 +0800
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 202.146.98.71
Message-ID: <4240ab53$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111534419 202.146.98.71 (22 Mar 2005 15:33:39 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail