Thread View: borland.public.cppbuilder.database.multi-tier
5 messages
5 total messages
Started by Dmitry Konnov
Thu, 24 Mar 2005 06:29
Variant! Variant! Variant! Variant! Variant!
Author: Dmitry Konnov
Date: Thu, 24 Mar 2005 06:29
Date: Thu, 24 Mar 2005 06:29
34 lines
1565 bytes
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
Re: Variant! Variant! Variant! Variant! Variant!
Author: Mark Guerrieri
Date: Thu, 31 Mar 2005 22:29
Date: Thu, 31 Mar 2005 22:29
18 lines
1234 bytes
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
Re: Variant! Variant! Variant! Variant! Variant!
Author: Dmitry Konnov
Date: Fri, 01 Apr 2005 06:24
Date: Fri, 01 Apr 2005 06:24
13 lines
1183 bytes
1183 bytes
Hi Mark, > Try: > > a_LacalMemTable->AllData = a_Res.GetElement(0); > int a_Val = a_Res.GetElement(1); Yes, thank you. Do you use Builder? Dmitry
Re: Variant! Variant! Variant! Variant! Variant!
Author: Mark Guerrieri
Date: Fri, 08 Apr 2005 18:02
Date: Fri, 08 Apr 2005 18:02
19 lines
1297 bytes
1297 bytes
BCB6 Ent "Dmitry Konnov" <dmitry@weblinedesign.biz> wrote in message news:424ce974@newsgroups.borland.com... > > Hi Mark, > > > Try: > > > > a_LacalMemTable->AllData = a_Res.GetElement(0); > > int a_Val = a_Res.GetElement(1); > > Yes, thank you. > > Do you use Builder? > > Dmitry > >
Re: Variant! Variant! Variant! Variant! Variant!
Author: Dmitry Konnov
Date: Sat, 09 Apr 2005 18:16
Date: Sat, 09 Apr 2005 18:16
5 lines
1192 bytes
1192 bytes
Mark, BCB6 Ent me also. please drop me a line to my email Dmitry
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads