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.

A JAVA Vector data type is returned to a powerbuiler ? Data Type

5 posts in General Discussion (old) Last posting was on 2000-02-10 20:27:52.0Z
Alan Lehman Posted on 2000-02-10 16:59:45.0Z
Newsgroups: sybase.public.easerver
From: "Alan Lehman" <alan.lehman@midata.com>
Subject: A JAVA Vector data type is returned to a powerbuiler ? Data Type
Date: Thu, 10 Feb 2000 10:59:45 -0600
Lines: 10
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: efg1.mids.com 207.250.224.4
Message-ID: <347_3ZJifi#c$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28978
Article PK: 161340

If a java class in jaguar is to pass powerbuiler a vector of strings, what
is the pb datatype?

I would think:

String ls_jag_return[]

ABL


Alan Lehman Posted on 2000-02-10 19:42:10.0Z
Newsgroups: sybase.public.easerver
From: "Alan Lehman" <alan.lehman@midata.com>
Subject: Re: A JAVA Vector data type is returned to a powerbuiler ? Data Type
Date: Thu, 10 Feb 2000 13:42:10 -0600
Lines: 25
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: efg1.mids.com 207.250.224.4
Message-ID: <347_MeRzP9$c$GA.180@forums.sybase.com>
References: <347_3ZJifi#c$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28957
Article PK: 154739

Thanks Carson!

I returned a unbonded string array to powerbuilder and the function proxcy
has a return type of stringseq.

In the debuger, the stringseq consists of a powerobject and a string array.
How to I access this datatype?

By the way, I will tyr to look you up at your April road show.

Alan

Alan Lehman <alan.lehman@midata.com> wrote in message
news:3ZJifi#c$GA.184@forums.sybase.com...
> If a java class in jaguar is to pass powerbuiler a vector of strings, what
> is the pb datatype?
>
> I would think:
>
> String ls_jag_return[]
>
> ABL
>
>


Alan Lehman Posted on 2000-02-10 19:47:26.0Z
Newsgroups: sybase.public.easerver
From: "Alan Lehman" <alan.lehman@midata.com>
Subject: Re: A JAVA Vector data type is returned to a powerbuiler ? Data Type
Date: Thu, 10 Feb 2000 13:47:26 -0600
Lines: 21
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: efg1.mids.com 207.250.224.4
Message-ID: <347_94b4LAAd$GA.305@forums.sybase.com>
References: <347_3ZJifi#c$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28956
Article PK: 161322

string LS_messages[10]
stringseq lsseq
lsseq = in_org_security.getvector()
messages[1] = lsseq.item[1]
messages[2] = lsseq.item[2]
messages[3] = lsseq.item[3]

Alan Lehman <alan.lehman@midata.com> wrote in message
news:3ZJifi#c$GA.184@forums.sybase.com...
> If a java class in jaguar is to pass powerbuiler a vector of strings, what
> is the pb datatype?
>
> I would think:
>
> String ls_jag_return[]
>
> ABL
>
>


Evan Ireland Posted on 2000-02-10 20:27:52.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 11 Feb 2000 09:27:52 +1300
From: Evan Ireland <eireland@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: A JAVA Vector data type is returned to a powerbuiler ? Data Type
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 20
NNTP-Posting-Host: 130.214.8.32
Message-ID: <347_38A31F48.D2900ED4@sybase.com>
References: <347_3ZJifi#c$GA.184@forums.sybase.com> <347_94b4LAAd$GA.305@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28954
Article PK: 161319


Alan Lehman wrote:
>
> stringseq lsseq
> lsseq = in_org_security.getvector()
> messages[1] = lsseq.item[1]
> messages[2] = lsseq.item[2]
> messages[3] = lsseq.item[3]

The explanation for this is as follows:

PowerBuilder does not allow arrays as function return types.

The PowerBuilder mapping of a CORBA object returning an array is a
structure containing an array called 'item'.

PowerBuilder allows structures as function return types. Thereby we return
an array indirectly by returning a structure containing an array.
________________________________________________________________________________

Evan Ireland Sybase EA Server Engineering eireland@sybase.com
Wellington - New Zealand +64 4 934-5856


Carson Hager[Team Sybase] Posted on 2000-02-10 19:23:32.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: A JAVA Vector data type is returned to a powerbuiler ? Data Type
Date: Thu, 10 Feb 2000 19:23:32 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 28
NNTP-Posting-Host: 63.86.26.206
Message-ID: <347_38a31024.11645505@forums.sybase.com>
References: <347_3ZJifi#c$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28971
Article PK: 161336

You can't pass a vector. You will have to pass an array.


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Thu, 10 Feb 2000 10:59:45 -0600, "Alan Lehman"

<alan.lehman@midata.com> wrote:

>If a java class in jaguar is to pass powerbuiler a vector of strings, what
>is the pb datatype?
>
>I would think:
>
>String ls_jag_return[]
>
>ABL
>
>

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com