Article View: borland.public.cppbuilder.database.multi-tier
Article #1645Can't transfer array to server
From: Alex
Date: Wed, 14 Jul 1999 00:00
Date: Wed, 14 Jul 1999 00:00
40 lines
1818 bytes
1818 bytes
Best wishes for All!
See such piece of code:
Variant varCodes = VarArrayCreate(OPENARRAY(int,(0,1)),varVariant);
varCodes.PutElement("220510900",0);
varCodes.PutElement("417",1);
.......
HRESULT z =
itfNSIDisp.get_ByIndex(WideString("DELSTAKC"),WideString("KODTOV"),
WideString("ST_L,OPER"),VARIANT(varCodes),WideString("DELSTTOV"));
The problem is so:
when I recieve my varCodes on server it is not array!
It worked before, but now it refuses.
The type of parametre on server is TVariant(not Variant, it's the caprise of
TLB editor). Tvariant have no methods of Variant, so I need to transfer
varCodes like VARIANT(varCodes), and do on server
varCodevalues = VARIANT(avarCodes)
or
varCodevalues = avarCodes.GetBaseVariant();
Without such tricks I receive during translation a lot of "ambiguity between
TVariantT<...> Tvariant & ... and TVariantT<...> System::Variant &".
Before installation of Update pack #1 I can do
Tvariant a = VarArrayOf(varCodes,1);
now I can only
Variant a = VarArrayOf(varCodes,1) if I don't wish to receive "ambiguity
between";
Why exists Tvariant? I can manually change in _TLB.h, _TLB.cpp and impl
files TVariant to Variant and compiler admits it, but when I do any change
in TLB, it restores TVariant.
But with TVariant or Variant I can't receive array on server.
HELP!
Alex.
Technical Details
Message-ID:
<7mh7uk$1nb12@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,29ab45b5745a9a42,start X-Google-Attributes: gidfcd2b,public From: "Alex" <alex740@mail.ru> Subject: Can't transfer array to server Date: 1999/07/14 Message-ID: <7mh7uk$1nb12@forums.borland.com> X-Deja-AN: 500815510 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.cppbuilder.database.multi-tier