Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Using string arrays to pass values by reference from PD to Jaguar

2 posts in General Discussion (old) Last posting was on 2000-03-07 23:33:53.0Z
Alistair Black Posted on 2000-03-07 15:53:48.0Z
Newsgroups: sybase.public.easerver
From: "Alistair Black" <ablack@investech-solutions.com>
Subject: Using string arrays to pass values by reference from PD to Jaguar
Date: Tue, 7 Mar 2000 15:53:48 -0000
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: mail.jsheet.co.uk 195.224.113.34
Message-ID: <347_2Hel93Ei$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26984
Article PK: 157927

Hi,

Please can somebody furnish me with some example PD script to initialise a
string array that I would be able to use within a REF method argument in a
call to a Jaguar component.

We've experimented with a compiled STRINGSEQHolder, but to no avail.

We're using 3.5 if it makes any difference and the component is PB
generated.

Many thanks

Alistair Black
Investech Solutions Ltd


Dave Wolf [Sybase] Posted on 2000-03-07 23:33:53.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Using string arrays to pass values by reference from PD to Jaguar
Date: Tue, 7 Mar 2000 18:33:53 -0500
Lines: 318
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: vpn-eme-060.sybase.com 130.214.8.60
Message-ID: <347_PWPPv4Ii$GA.201@forums.sybase.com>
References: <347_2Hel93Ei$GA.251@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26932
Article PK: 157886

There are some known bugs in some releases of EAS dealing with arrays.

But that said. Use the attached Dynamo classes as

import JavaWrappers.ssc;

array = new JavaArrayHelper("org.omg.CORBA.StringHolder", 2);
h1 = java.CreateObject("org.omg.CORBA.StringHolder","Dave");
h2 = java.CreateObject("org.omg.CORBA.StringHolder","Wolf");
array[0] = h1;
array[1] = h2;

array = array.save();

comp = java.CreateComponent("Foo/Bar");
comp.passByRefMethod(array);

arrayOut = new JavaArrayHelper(array);
h1 = arrayOut[1];
helper = new JavaFieldHelper(h1);
document.writeln(helper.getString("value"));

Dave Wolf
Internet Applications Division

"Alistair Black" <ablack@investech-solutions.com> wrote in message
news:2Hel93Ei$GA.251@forums.sybase.com...
> Hi,
>
> Please can somebody furnish me with some example PD script to initialise a
> string array that I would be able to use within a REF method argument in a
> call to a Jaguar component.
>
> We've experimented with a compiled STRINGSEQHolder, but to no avail.
>
> We're using 3.5 if it makes any difference and the component is PB
> generated.
>
> Many thanks
>
> Alistair Black
> Investech Solutions Ltd
>
>