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.

Communicating between user-objects via NVO

2 posts in Objects Last posting was on 2003-06-17 15:39:13.0Z
John Ardila Posted on 2003-06-10 15:20:17.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "John Ardila" <ardila_john@hotmail.com>
Subject: Communicating between user-objects via NVO
Date: Tue, 10 Jun 2003 10:20:17 -0500
Lines: 5
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: pat.harte-hanks.com 63.95.64.254
Message-ID: <364_eyDdJS2LDHA.187@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:7459
Article PK: 734747

I have successfully assigned values to instance variables in an NVO invoked
by one user object. How can another user object access those values assigned
within the NVO?


"John Olson [Team Sybase]" <john.olson Posted on 2003-06-17 15:39:13.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "John Olson [Team Sybase]" <john.olson@nospam_teamsybase.com>
Subject: Re: Communicating between user-objects via NVO
Date: Tue, 17 Jun 2003 11:39:13 -0400
Lines: 27
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: tom.scn.spawar.navy.mil 192.171.8.14
Message-ID: <364_eEEA5eONDHA.187@forums-2-dub>
References: <364_eyDdJS2LDHA.187@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:7466
Article PK: 734752

Two direct ways to do this are:

1. reference the same NVO instance from each object that needs those values.
To do this you'd need to make the NVO's reference available by passing it
around. The point is that the values are contained with a specific instance
of the NVO. Every object that needs to reference those values must reference
that NVO instance.

2. set those instance variables to be shared variables. In this case every
instance of the NVO class will have access to the same values. So all
objects that need those values can simply reference any instance of the NVO.

Regards,
John
Team Sybase

"John Ardila" <ardila_john@hotmail.com> wrote in message
news:eyDdJS2LDHA.187@forums-2-dub...
> I have successfully assigned values to instance variables in an NVO
invoked
> by one user object. How can another user object access those values
assigned
> within the NVO?
>
>