🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Variant! Variant! Variant! Variant! Variant!

#79
From: Mark Guerrieri
Date: Thu, 31 Mar 2005 22:29
18 lines
1234 bytes
>
> 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
>

Try:

a_LacalMemTable->AllData = a_Res.GetElement(0);
int a_Val = a_Res.GetElement(1);

Mark
Technical Details
Message-ID: <424c79df$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <42425e9a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcd2b,69bf865f11653984
X-Google-Attributes: gidfcd2b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Guerrieri" <mguerrieri@nospam_cmsgrp.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
References: <42425e9a$1@newsgroups.borland.com>
Subject: Re: Variant! Variant! Variant! Variant! Variant!
Date: Thu, 31 Mar 2005 17:29:59 -0500
Lines: 20
Organization: Creative Marketing Strategies
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.50.174.82
Message-ID: <424c79df$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112308191 209.50.174.82 (31 Mar 2005 14:29:51 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail