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.

Multiple Instances of an NVO

3 posts in Objects Last posting was on 2004-02-06 15:33:00.0Z
Chris Monk Posted on 2004-02-06 14:44:40.0Z
From: "Chris Monk" <chris.monk@deq.state.ok.us>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Multiple Instances of an NVO
Lines: 32
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: 204.62.27.82
X-Original-NNTP-Posting-Host: 204.62.27.82
Message-ID: <4023a858$1@forums-1-dub>
Date: 6 Feb 2004 06:44:40 -0800
X-Trace: forums-1-dub 1076078680 204.62.27.82 (6 Feb 2004 06:44:40 -0800)
X-Original-Trace: 6 Feb 2004 06:44:40 -0800, 204.62.27.82
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7775
Article PK: 735052

Question 1: If the following code in the Calling Object is executed 'X'
Times,
does the prior instance of "dish" go out of scope?

Question 2: If not how do I address that/those instances?
Is there some Array that I can use to do that?


// NVO: n_cst_dish
//
// Prpoerties for n_cst_dish
// string entree
// method addEntree( string EntreeName )
//
// Behavior: Sets Values of Entree to
// passed Value of ArG: EntreeName.


**********************************************
//Instance Variable in a calling object.
----------------------------------------
n_cst_dish dish



// Code in Calling Object.
--------------------------
dish = create n_cst_dish

dish.addEntree( "Chopsuey" )


Chris Pollach Posted on 2004-02-06 15:03:34.0Z
From: "Chris Pollach" <PollachC@SCC-CSC.gc.ca>
Newsgroups: sybase.public.powerbuilder.objects
References: <4023a858$1@forums-1-dub>
Subject: Re: Multiple Instances of an NVO
Lines: 48
Organization: The Supreme Court of Canada
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: www.scc-csc.gc.ca
X-Original-NNTP-Posting-Host: www.scc-csc.gc.ca
Message-ID: <4023acc6$1@forums-1-dub>
Date: 6 Feb 2004 07:03:34 -0800
X-Trace: forums-1-dub 1076079814 209.47.227.132 (6 Feb 2004 07:03:34 -0800)
X-Original-Trace: 6 Feb 2004 07:03:34 -0800, www.scc-csc.gc.ca
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7776
Article PK: 735050

Chris;

Q1: prior instance of "dish" go out of scope?
A1: Yes, but only when the Object that hold the variable is destroyed.
Q2: how do I address that/those instances?
A2: Make the variable an array.

regards ... Chris
Great White North Technical Evangelist

"Chris Monk" <chris.monk@deq.state.ok.us> wrote in message
news:4023a858$1@forums-1-dub...
> Question 1: If the following code in the Calling Object is executed 'X'
> Times,
> does the prior instance of "dish" go out of scope?
>
> Question 2: If not how do I address that/those instances?
> Is there some Array that I can use to do that?
>
>
> // NVO: n_cst_dish
> //
> // Prpoerties for n_cst_dish
> // string entree
> // method addEntree( string EntreeName )
> //
> // Behavior: Sets Values of Entree to
> // passed Value of ArG: EntreeName.
>
>
> **********************************************
> //Instance Variable in a calling object.
> ----------------------------------------
> n_cst_dish dish
>
>
>
> // Code in Calling Object.
> --------------------------
> dish = create n_cst_dish
>
> dish.addEntree( "Chopsuey" )
>
>


Bruce Armstrong [TeamSybase] Posted on 2004-02-06 15:33:00.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Multiple Instances of an NVO
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <6ob720tlijrh9fhgpi4rfhrdtmipdsrlfk@4ax.com>
References: <4023a858$1@forums-1-dub>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 66-214-183-11.la-cbi.charterpipeline.net
Date: 6 Feb 2004 07:33:00 -0800
X-Trace: forums-1-dub 1076081580 66.214.183.11 (6 Feb 2004 07:33:00 -0800)
X-Original-Trace: 6 Feb 2004 07:33:00 -0800, 66-214-183-11.la-cbi.charterpipeline.net
Lines: 59
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7777
Article PK: 735051

You only want to do that create once. You might do an IsValid or
IsNull (don't remember which off the top of my head) on the variable
before issuing the create, or do the create in the constructor event
of the hosting object.

Do you want to create an array of that class?

On 6 Feb 2004 06:44:40 -0800, "Chris Monk"

<chris.monk@deq.state.ok.us> wrote:

>Question 1: If the following code in the Calling Object is executed 'X'
>Times,
>does the prior instance of "dish" go out of scope?
>
>Question 2: If not how do I address that/those instances?
>Is there some Array that I can use to do that?
>
>
>// NVO: n_cst_dish
>//
>// Prpoerties for n_cst_dish
>// string entree
>// method addEntree( string EntreeName )
>//
>// Behavior: Sets Values of Entree to
>// passed Value of ArG: EntreeName.
>
>
>**********************************************
>//Instance Variable in a calling object.
>----------------------------------------
>n_cst_dish dish
>
>
>
>// Code in Calling Object.
>--------------------------
>dish = create n_cst_dish
>
>dish.addEntree( "Chopsuey" )
>

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Sixth Annual Sybase Tools Seminar - April 19 - Minneapolis, MN
http://www.powerobjects.com/seminar/?source=newsgroups

Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

ISUG Enhancement Requests
http://www.isug.com/cgi-bin/ISUG2/submit_enhancement

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org