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.

Global Function returns

7 posts in Objects Last posting was on 2003-04-28 18:34:26.0Z
Tammy Posted on 2003-04-25 15:07:20.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Tammy
Date: Fri, 25 Apr 2003 11:07:20 -0400
Subject: Global Function returns
Lines: 8
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_658185EC9809C542005311A785256D13.005311DE85256D13@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:7357
Article PK: 734647

I am working with a global function and i would like it to be able to
return 2 different decimal valuies.
global functions can't return structures or arrays.

I ended up returning 1 of the values normally and passing in the other as a
reference variable and sending it back.

Is there any other way I can do this?


Olivier Posted on 2003-04-25 14:42:16.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Olivier" <ociteau-NOCANSPAM@yahoo.fr>
Organization: 212.234.59.105
X-Newsreader: AspNNTP 1.50 (C I Host)
Subject: Re: Global Function returns
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Fri, 25 Apr 2003 07:42:16 -0700
NNTP-Posting-Host: 66.221.40.1
Lines: 13
Message-ID: <364_uoF5ejzCDHA.293@forums-1-dub>
References: <364_658185EC9809C542005311A785256D13.005311DE85256D13@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-1-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7358
Article PK: 734643

On Fri, 25 Apr 2003 11:07:20 -0400,
in powersoft.public.powerbuilder.objects

<Tammy> wrote:
>I am working with a global function and i would like it to be able to
>return 2 different decimal valuies.
>global functions can't return structures or arrays.
>
>I ended up returning 1 of the values normally and passing in the other as a
>reference variable and sending it back.
>
>Is there any other way I can do this?

--
Olivier Citeau from Paris, France
posted via pfcguide.com


Olivier Posted on 2003-04-25 14:45:57.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Olivier" <ociteau-NOCANSPAM@yahoo.fr>
Organization: 212.234.59.105
X-Newsreader: AspNNTP 1.50 (C I Host)
Subject: Re: Global Function returns
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Fri, 25 Apr 2003 07:45:57 -0700
NNTP-Posting-Host: 66.221.40.1
Lines: 16
Message-ID: <364_O2iqilzCDHA.283@forums-2-dub>
References: <364_658185EC9809C542005311A785256D13.005311DE85256D13@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7359
Article PK: 734645

Sorry for empty message.
You could return a structure.

You should not use global function, but wrap them in a nvo.

On Fri, 25 Apr 2003 11:07:20 -0400,
in powersoft.public.powerbuilder.objects

<Tammy> wrote:
>I am working with a global function and i would like it to be able to
>return 2 different decimal valuies.
>global functions can't return structures or arrays.
>
>I ended up returning 1 of the values normally and passing in the other as a
>reference variable and sending it back.
>
>Is there any other way I can do this?

--
Olivier Citeau from Paris, France
posted via pfcguide.com


Roy Kiesler [TeamSybase] Posted on 2003-04-25 15:00:18.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: Global Function returns
Date: Fri, 25 Apr 2003 11:00:18 -0400
Lines: 21
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: host131.percussion.com 208.252.62.131
Message-ID: <364_ef5$swzCDHA.194@forums-2-dub>
References: <364_658185EC9809C542005311A785256D13.005311DE85256D13@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7360
Article PK: 734649

Global functions can return any valid PowerScript type, including
structures.

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
SDN CoeXchange -- http://codexchange.sybase.com

<Tammy> wrote in message
news:658185EC9809C542005311A785256D13.005311DE85256D13@webforums...
> I am working with a global function and i would like it to be able to
> return 2 different decimal valuies.
> global functions can't return structures or arrays.
>
> I ended up returning 1 of the values normally and passing in the other as
a
> reference variable and sending it back.
>
> Is there any other way I can do this?


Chris Pollach Posted on 2003-04-25 15:43:47.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Chris Pollach" <cpollach@ajja.com>
Subject: Re: Global Function returns
Date: Fri, 25 Apr 2003 11:43:47 -0400
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 209.47.227.134
Message-ID: <364_uBEt5I0CDHA.280@forums-2-dub>
References: <364_658185EC9809C542005311A785256D13.005311DE85256D13@webforums> <364_ef5$swzCDHA.194@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7361
Article PK: 734648

And there is always the good old Message Object!

"Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote in
message news:ef5$swzCDHA.194@forums-2-dub...
> Global functions can return any valid PowerScript type, including
> structures.
>
> --
> <hopethishelps/>
> Roy Kiesler [TeamSybase]
> SDN CoeXchange -- http://codexchange.sybase.com
>
> <Tammy> wrote in message
> news:658185EC9809C542005311A785256D13.005311DE85256D13@webforums...
> > I am working with a global function and i would like it to be able to
> > return 2 different decimal valuies.
> > global functions can't return structures or arrays.
> >
> > I ended up returning 1 of the values normally and passing in the other
as
> a
> > reference variable and sending it back.
> >
> > Is there any other way I can do this?
>
>


Roy Kiesler [TeamSybase] Posted on 2003-04-25 17:01:00.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: Global Function returns
Date: Fri, 25 Apr 2003 13:01:00 -0400
Lines: 39
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: host131.percussion.com 208.252.62.131
Message-ID: <364_ucdpvy0CDHA.221@forums-1-dub>
References: <364_658185EC9809C542005311A785256D13.005311DE85256D13@webforums> <364_ef5$swzCDHA.194@forums-2-dub> <364_uBEt5I0CDHA.280@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-1-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7362
Article PK: 734653

Hell, yeah!

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
SDN CoeXchange -- http://codexchange.sybase.com

"Chris Pollach" <cpollach@ajja.com> wrote in message
news:uBEt5I0CDHA.280@forums-2-dub...
> And there is always the good old Message Object!
>
> "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote in
> message news:ef5$swzCDHA.194@forums-2-dub...
> > Global functions can return any valid PowerScript type, including
> > structures.
> >
> > --
> > <hopethishelps/>
> > Roy Kiesler [TeamSybase]
> > SDN CoeXchange -- http://codexchange.sybase.com
> >
> > <Tammy> wrote in message
> > news:658185EC9809C542005311A785256D13.005311DE85256D13@webforums...
> > > I am working with a global function and i would like it to be able to
> > > return 2 different decimal valuies.
> > > global functions can't return structures or arrays.
> > >
> > > I ended up returning 1 of the values normally and passing in the other
> as
> > a
> > > reference variable and sending it back.
> > >
> > > Is there any other way I can do this?
> >
> >
>
>


Cesar Vergara Posted on 2003-04-28 18:34:26.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Cesar Vergara" <mediaware@terra.com.pe>
Subject: Re: Global Function returns
Date: Mon, 28 Apr 2003 13:34:26 -0500
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 200.106.20.170
Message-ID: <364_#t90xVbDDHA.280@forums-2-dub>
References: <364_658185EC9809C542005311A785256D13.005311DE85256D13@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7367
Article PK: 734660

You can define a Global Structure and store the values you need there from
your global function and return an int value to reflect success or failure.
If success the you must check the global structure from your calling proc.

--
********************
Cesar Vergara
MediaWare SAC
********************
<Tammy> escribió en el mensaje
news:658185EC9809C542005311A785256D13.005311DE85256D13@webforums...

> I am working with a global function and i would like it to be able to
> return 2 different decimal valuies.
> global functions can't return structures or arrays.
>
> I ended up returning 1 of the values normally and passing in the other as
a
> reference variable and sending it back.
>
> Is there any other way I can do this?