🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Variant! Variant! Variant! Variant! Variant!

#75
From: Dmitry Konnov
Date: Thu, 24 Mar 2005 06:29
34 lines
1565 bytes
Hello,

I need to pass array of parameters from client to server.
I use Variant for transport.

My method returns Variant.
And in this Variant there are array of elements there.

This is the way i create the array:

  Variant a_Array[2];
  a_Array[0] = a_MemTable->AllData;
  a_Array[1] = a_Val;
  return VarArrayOf(a_Array, 2);

  Compilation goes well.

But i cannot get back the array elements.

Variant a_Res = MyMethod();

 a_LacalMemTable->AllData = a_Res[0];
 int a_Val = a_Res[1];

Compiler curses for []
It says

Variant::operator[](const int) is not accessible


Please help.
Thank in advance.

Dmitry Konnov
Technical Details
Message-ID: <42425e9a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!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: fcd2b,69bf865f11653984,start
X-Google-Attributes: gidfcd2b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Dmitry Konnov" <dmitry@weblinedesign.biz>
From: "Dmitry Konnov" <dmitry@weblinedesign.biz>
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: Variant! Variant! Variant! Variant! Variant!
Date: Thu, 24 Mar 2005 09:29:45 +0300
Lines: 36
Organization: weblinedesign
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.58.203.114
Message-ID: <42425e9a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111645850 212.58.203.114 (23 Mar 2005 22:30:50 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail