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.

NVO

3 posts in Objects Last posting was on 2003-07-24 15:02:37.0Z
Jack Posted on 2003-07-24 06:10:52.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Jack
Date: Thu, 24 Jul 2003 02:10:52 -0400
Subject: NVO
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_74C9DC04C0FA6FA00021F40985256D6D.0021F45285256D6D@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:7502
Article PK: 734790

Hi All,

I have some NVOs in my application and I am unable to make a choice which
method to use while using these NVOs. There are two methods:

First method is to [check on] the autoinitiate property of the NVOs
control. In this method memory is automatically assign to NVOs object when
its property or fuction is referneced.

Second method is to explicitly assign memory to NVO object with the CREATE
statement befor using these NVOs objects.

which method should one use in app.
We are using PB 6.5 and planning to use PB 8 in near future.

Thanks in adv.
Jack


Olivier Posted on 2003-07-24 15:02:37.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Olivier" <ociteau-NOCANSPAM@yahoo.fr>
Organization: 81.80.240.237
X-Newsreader: AspNNTP 1.50 (Tri Hoang)
Subject: Re: NVO
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Thu, 24 Jul 2003 08:02:37 -0700
NNTP-Posting-Host: transinc-win02.netoptex.com 206.169.167.22
Lines: 31
Message-ID: <364_elajfSfUDHA.349@forums-2-dub>
References: <364_74C9DC04C0FA6FA00021F40985256D6D.0021F45285256D6D@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:7504
Article PK: 734791

You 'll have better performance with autoinstantiate nvo's.

BUT, when i use a nvo to transfer information between objects (openWithParm,
closeWithReturn, ...), or as an argument of a function, i create it myself (not
autoinstantiate). This for performance issues.

Notice that since pb7, you have a third solution for nvo belonging to a window.
If your nvo is not autoinstanciate, you can add it to the "nvo list" of the
window (instead of instance variable), and pb will manage the create and destroy
for you.

On Thu, 24 Jul 2003 02:10:52 -0400,
in powersoft.public.powerbuilder.objects

<Jack> wrote:
>Hi All,
>
>I have some NVOs in my application and I am unable to make a choice which
>method to use while using these NVOs. There are two methods:
>
>First method is to [check on] the autoinitiate property of the NVOs
>control. In this method memory is automatically assign to NVOs object when
>its property or fuction is referneced.
>
>Second method is to explicitly assign memory to NVO object with the CREATE
>statement befor using these NVOs objects.
>
>which method should one use in app.
>We are using PB 6.5 and planning to use PB 8 in near future.
>
>Thanks in adv.
>Jack


Andy Turiansky [TeamSybase] Posted on 2003-07-24 12:26:45.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Andy Turiansky [TeamSybase]" <aturiansky@comcast.net>
Organization: 192.189.32.10
X-Newsreader: AspNNTP 1.50 (Tri Hoang)
Subject: Re: NVO
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Thu, 24 Jul 2003 05:26:45 -0700
NNTP-Posting-Host: transinc-win02.netoptex.com 206.169.167.22
Lines: 25
Message-ID: <364_uQj0Z7dUDHA.298@forums-2-dub>
References: <364_74C9DC04C0FA6FA00021F40985256D6D.0021F45285256D6D@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:7503
Article PK: 734793

I prefer to manage the creation and destruction of these objects....

'
On Thu, 24 Jul 2003 02:10:52 -0400,
in powersoft.public.powerbuilder.objects

<Jack> wrote:
>Hi All,
>
>I have some NVOs in my application and I am unable to make a choice which
>method to use while using these NVOs. There are two methods:
>
>First method is to [check on] the autoinitiate property of the NVOs
>control. In this method memory is automatically assign to NVOs object when
>its property or fuction is referneced.
>
>Second method is to explicitly assign memory to NVO object with the CREATE
>statement befor using these NVOs objects.
>
>which method should one use in app.
>We are using PB 6.5 and planning to use PB 8 in near future.
>
>Thanks in adv.
>Jack

- - -
Andy [TeamSybase]

Techwave 2003 - http://www.sybase.com/techwave2003
International Sybase User Group (ISUG) - http://www.isug.com
CodeXchange - http://powerbuilder.codeXchange.sybase.com/