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.

Setting user objects

13 posts in Objects Last posting was on 2004-08-11 13:08:50.0Z
Ýzak Nino Posted on 2004-08-09 15:46:50.0Z
Reply-To: "Ýzak Nino" <izak@boyutsis.com>
From: "Ýzak Nino" <izak@boyutsis.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Setting user objects
Lines: 18
Organization: BoyutSis
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2741.2600
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200
NNTP-Posting-Host: adsluser-2832.adsl.ttnet.net.tr
X-Original-NNTP-Posting-Host: adsluser-2832.adsl.ttnet.net.tr
Message-ID: <41179c6a@forums-1-dub>
Date: 9 Aug 2004 08:46:50 -0700
X-Trace: forums-1-dub 1092066410 212.174.59.16 (9 Aug 2004 08:46:50 -0700)
X-Original-Trace: 9 Aug 2004 08:46:50 -0700, adsluser-2832.adsl.ttnet.net.tr
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7973
Article PK: 735238

I have a window let us say w1 containing a visible user object say uo_1. In
this window I set certain properties of this user object.

I would like to do the following :

-Call a second window w2 containing a user object of the same type say
uo_2.
-Set w2.uo_2 = w1.uo_1 ie create an identical copy or point to the same
reference as w1.uo_1 in the open event of w1
-Make certain changes in w2.uo_2.
-Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed instance of uo_2.

How can i do this in powerscript ? Any ideas ?

Regards - Ýzak Nino


Philip Salgannik Posted on 2004-08-09 19:15:02.0Z
Sender: 7ec1.4117b915.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Setting user objects
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4117ce6d.2a1.1681692777@sybase.com>
References: <41179c6a@forums-1-dub>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 9 Aug 2004 12:20:13 -0700, 10.22.241.42
Lines: 23
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 9 Aug 2004 12:06:31 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 9 Aug 2004 12:15:02 -0700
X-Trace: forums-1-dub 1092078902 10.22.108.75 (9 Aug 2004 12:15:02 -0700)
X-Original-Trace: 9 Aug 2004 12:15:02 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7974
Article PK: 735247

Short answer - you shouldn't be doing this :-)

> I have a window let us say w1 containing a visible user
> object say uo_1. In this window I set certain properties
> of this user object.
>
> I would like to do the following :
>
> -Call a second window w2 containing a user object of the
> same type say uo_2.
> -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> point to the same reference as w1.uo_1 in the open event
> of w1 -Make certain changes in w2.uo_2.
> -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
instance
> of uo_2.
>
> How can i do this in powerscript ? Any ideas ?
>
> Regards - Ýzak Nino
>
>
>


Izak Nino Posted on 2004-08-10 08:22:06.0Z
Reply-To: "Izak Nino" <izak@boyutsis.com>
From: "Izak Nino" <izak@boyutsis.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com>
Subject: Re: Setting user objects
Lines: 31
Organization: BoyutSis
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2741.2600
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200
NNTP-Posting-Host: adsluser-2832.adsl.ttnet.net.tr
X-Original-NNTP-Posting-Host: adsluser-2832.adsl.ttnet.net.tr
Message-ID: <411885ae@forums-1-dub>
Date: 10 Aug 2004 01:22:06 -0700
X-Trace: forums-1-dub 1092126126 212.174.59.16 (10 Aug 2004 01:22:06 -0700)
X-Original-Trace: 10 Aug 2004 01:22:06 -0700, adsluser-2832.adsl.ttnet.net.tr
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7977
Article PK: 735242

Is there a longer answer, with more substance ?

Regards - Izak Nino

<Philip Salgannik> wrote in message
news:4117ce6d.2a1.1681692777@sybase.com...
Short answer - you shouldn't be doing this :-)

> I have a window let us say w1 containing a visible user
> object say uo_1. In this window I set certain properties
> of this user object.
>
> I would like to do the following :
>
> -Call a second window w2 containing a user object of the
> same type say uo_2.
> -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> point to the same reference as w1.uo_1 in the open event
> of w1 -Make certain changes in w2.uo_2.
> -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
instance
> of uo_2.
>
> How can i do this in powerscript ? Any ideas ?
>
> Regards - Ýzak Nino
>
>
>


Scott Morris Posted on 2004-08-10 12:37:29.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub>
Subject: Re: Setting user objects
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Original-NNTP-Posting-Host: ip52-gadivinv-a8.atl1.exsbs.net
Message-ID: <4118c2c1$1@forums-2-dub>
X-Original-Trace: 10 Aug 2004 05:42:41 -0700, ip52-gadivinv-a8.atl1.exsbs.net
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Aug 2004 05:28:53 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Aug 2004 05:37:29 -0700
X-Trace: forums-1-dub 1092141449 10.22.108.75 (10 Aug 2004 05:37:29 -0700)
X-Original-Trace: 10 Aug 2004 05:37:29 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7978
Article PK: 735245

I agree with Philip that your design seems to be flawed - it is a bad idea
to duplicate an object if it represents the same "thing". However, it would
be nice if PB supported operator overloading like other OOP languages -
which it does not. About the best you can do is to define a function that
accepts an object of the same class as an argument. In the function, you
would then "copy" the instance variables from the argument object.

One example - n_cst_nodebase.of_copyto

"Izak Nino" <izak@boyutsis.com> wrote in message
news:411885ae@forums-1-dub...
> Is there a longer answer, with more substance ?
>
> Regards - Izak Nino
>
> <Philip Salgannik> wrote in message
> news:4117ce6d.2a1.1681692777@sybase.com...
> Short answer - you shouldn't be doing this :-)
>
> > I have a window let us say w1 containing a visible user
> > object say uo_1. In this window I set certain properties
> > of this user object.
> >
> > I would like to do the following :
> >
> > -Call a second window w2 containing a user object of the
> > same type say uo_2.
> > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> > point to the same reference as w1.uo_1 in the open event
> > of w1 -Make certain changes in w2.uo_2.
> > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
> instance
> > of uo_2.
> >
> > How can i do this in powerscript ? Any ideas ?
> >
> > Regards - Ýzak Nino
> >
> >
> >
>
>


Bruce Armstrong [TeamSybase] Posted on 2004-08-10 14:30:34.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Setting user objects
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <qfmhh053jhgtfl43vovqhrqdum5ad5osts@4ax.com>
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Original-NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
X-Original-Trace: 10 Aug 2004 07:35:48 -0700, 68-190-226-38.la-cbi.charterpipeline.net
Lines: 83
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Aug 2004 07:21:59 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Aug 2004 07:30:34 -0700
X-Trace: forums-1-dub 1092148234 10.22.108.75 (10 Aug 2004 07:30:34 -0700)
X-Original-Trace: 10 Aug 2004 07:30:34 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7979
Article PK: 735246

Where did you get the impression that PowerBuilder doesn't support
overloading?

On 10 Aug 2004 05:37:29 -0700, "Scott Morris" <bogus@bogus.com> wrote:

>I agree with Philip that your design seems to be flawed - it is a bad idea
>to duplicate an object if it represents the same "thing". However, it would
>be nice if PB supported operator overloading like other OOP languages -
>which it does not. About the best you can do is to define a function that
>accepts an object of the same class as an argument. In the function, you
>would then "copy" the instance variables from the argument object.
>
>One example - n_cst_nodebase.of_copyto
>
>"Izak Nino" <izak@boyutsis.com> wrote in message
>news:411885ae@forums-1-dub...
>> Is there a longer answer, with more substance ?
>>
>> Regards - Izak Nino
>>
>> <Philip Salgannik> wrote in message
>> news:4117ce6d.2a1.1681692777@sybase.com...
>> Short answer - you shouldn't be doing this :-)
>>
>> > I have a window let us say w1 containing a visible user
>> > object say uo_1. In this window I set certain properties
>> > of this user object.
>> >
>> > I would like to do the following :
>> >
>> > -Call a second window w2 containing a user object of the
>> > same type say uo_2.
>> > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
>> > point to the same reference as w1.uo_1 in the open event
>> > of w1 -Make certain changes in w2.uo_2.
>> > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
>> instance
>> > of uo_2.
>> >
>> > How can i do this in powerscript ? Any ideas ?
>> >
>> > Regards - Ýzak Nino
>> >
>> >
>> >
>>
>>
>

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

TeamSybase blogs:
http://www.teamsybase.net/blogs

Vote for PocketBuilder in the Mobile Village awards
http://www.mobilevillage.com/awards.htm

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

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

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

---------------------------------------------------------------------
DISCLAIMER:

This newsgroup message is only intended for the recipient. Given that it
is a posting to a public newsgroup, that means if you can read this
message then you are the recipient. This message may contain information
that is confidential and protected from disclosure. And then again,
it may not.

Given that TeamSybase members are not employees of Sybase, the contents
of this message do not necessarily represent the views or policies of
Sybase. Given that TeamSybase is a diverse group of users of Sybase
products, the contents of this message do not necessarily represent the
views of a significant number of the members of TeamSybase. Given that the
author has mutliple personalities and hears voices in his head, the contents
of this message do not necessarily represent his own views.


Scott Morris Posted on 2004-08-10 16:22:43.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub> <qfmhh053jhgtfl43vovqhrqdum5ad5osts@4ax.com>
Subject: Re: Setting user objects
Lines: 95
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Original-NNTP-Posting-Host: ip52-gadivinv-a8.atl1.exsbs.net
Message-ID: <4118f78c$1@forums-2-dub>
X-Original-Trace: 10 Aug 2004 09:27:56 -0700, ip52-gadivinv-a8.atl1.exsbs.net
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Aug 2004 09:14:06 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Aug 2004 09:22:43 -0700
X-Trace: forums-1-dub 1092154963 10.22.108.75 (10 Aug 2004 09:22:43 -0700)
X-Original-Trace: 10 Aug 2004 09:22:43 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7981
Article PK: 735251

note - I said OPERATOR overloading

"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>

wrote in message news:qfmhh053jhgtfl43vovqhrqdum5ad5osts@4ax.com...
> Where did you get the impression that PowerBuilder doesn't support
> overloading?
>
> On 10 Aug 2004 05:37:29 -0700, "Scott Morris" <bogus@bogus.com> wrote:
>
> >I agree with Philip that your design seems to be flawed - it is a bad
idea
> >to duplicate an object if it represents the same "thing". However, it
would
> >be nice if PB supported operator overloading like other OOP languages -
> >which it does not. About the best you can do is to define a function
that
> >accepts an object of the same class as an argument. In the function, you
> >would then "copy" the instance variables from the argument object.
> >
> >One example - n_cst_nodebase.of_copyto
> >
> >"Izak Nino" <izak@boyutsis.com> wrote in message
> >news:411885ae@forums-1-dub...
> >> Is there a longer answer, with more substance ?
> >>
> >> Regards - Izak Nino
> >>
> >> <Philip Salgannik> wrote in message
> >> news:4117ce6d.2a1.1681692777@sybase.com...
> >> Short answer - you shouldn't be doing this :-)
> >>
> >> > I have a window let us say w1 containing a visible user
> >> > object say uo_1. In this window I set certain properties
> >> > of this user object.
> >> >
> >> > I would like to do the following :
> >> >
> >> > -Call a second window w2 containing a user object of the
> >> > same type say uo_2.
> >> > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> >> > point to the same reference as w1.uo_1 in the open event
> >> > of w1 -Make certain changes in w2.uo_2.
> >> > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
> >> instance
> >> > of uo_2.
> >> >
> >> > How can i do this in powerscript ? Any ideas ?
> >> >
> >> > Regards - Ýzak Nino
> >> >
> >> >
> >> >
> >>
> >>
> >
>
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> TeamSybase blogs:
> http://www.teamsybase.net/blogs
>
> Vote for PocketBuilder in the Mobile Village awards
> http://www.mobilevillage.com/awards.htm
>
> Two 3rd party books on developing with PowerBuilder
> http://www.pb9books.com?source=newsgroups
>
> Need code sample? Check out CodeXchange:
> http://www.codexchange.sybase.com
>
> Preach the gospel at all times. If necessary, use words. - Francis of
Assisi
> http://www.needhim.org
>
> ---------------------------------------------------------------------
> DISCLAIMER:
>
> This newsgroup message is only intended for the recipient. Given that it
> is a posting to a public newsgroup, that means if you can read this
> message then you are the recipient. This message may contain information
> that is confidential and protected from disclosure. And then again,
> it may not.
>
> Given that TeamSybase members are not employees of Sybase, the contents
> of this message do not necessarily represent the views or policies of
> Sybase. Given that TeamSybase is a diverse group of users of Sybase
> products, the contents of this message do not necessarily represent the
> views of a significant number of the members of TeamSybase. Given that
the
> author has mutliple personalities and hears voices in his head, the
contents
> of this message do not necessarily represent his own views.


Bruce Armstrong [TeamSybase] Posted on 2004-08-11 05:05:17.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Setting user objects
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <rf9jh0he5b4aokculp6i1lv9qgbb4fqu8j@4ax.com>
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub> <qfmhh053jhgtfl43vovqhrqdum5ad5osts@4ax.com> <4118f78c$1@forums-2-dub>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Original-NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
X-Original-Trace: 10 Aug 2004 22:10:31 -0700, 68-190-226-38.la-cbi.charterpipeline.net
Lines: 137
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Aug 2004 21:56:36 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Aug 2004 22:05:17 -0700
X-Trace: forums-1-dub 1092200717 10.22.108.75 (10 Aug 2004 22:05:17 -0700)
X-Original-Trace: 10 Aug 2004 22:05:17 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7983
Article PK: 735250

OIC. However, that's primarily a C++ thing (and IMHO a bad idea). I
think the Java folks were wise not to support it. I think the C# guys
only allowed some operator overloading because C++ did. You'll note
that VB.Net also doesn't support it (or doesn't currently, apparently
they're adding it in Whidbey).

On 10 Aug 2004 09:22:43 -0700, "Scott Morris" <bogus@bogus.com> wrote:

>note - I said OPERATOR overloading
>
>"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
>wrote in message news:qfmhh053jhgtfl43vovqhrqdum5ad5osts@4ax.com...
>> Where did you get the impression that PowerBuilder doesn't support
>> overloading?
>>
>> On 10 Aug 2004 05:37:29 -0700, "Scott Morris" <bogus@bogus.com> wrote:
>>
>> >I agree with Philip that your design seems to be flawed - it is a bad
>idea
>> >to duplicate an object if it represents the same "thing". However, it
>would
>> >be nice if PB supported operator overloading like other OOP languages -
>> >which it does not. About the best you can do is to define a function
>that
>> >accepts an object of the same class as an argument. In the function, you
>> >would then "copy" the instance variables from the argument object.
>> >
>> >One example - n_cst_nodebase.of_copyto
>> >
>> >"Izak Nino" <izak@boyutsis.com> wrote in message
>> >news:411885ae@forums-1-dub...
>> >> Is there a longer answer, with more substance ?
>> >>
>> >> Regards - Izak Nino
>> >>
>> >> <Philip Salgannik> wrote in message
>> >> news:4117ce6d.2a1.1681692777@sybase.com...
>> >> Short answer - you shouldn't be doing this :-)
>> >>
>> >> > I have a window let us say w1 containing a visible user
>> >> > object say uo_1. In this window I set certain properties
>> >> > of this user object.
>> >> >
>> >> > I would like to do the following :
>> >> >
>> >> > -Call a second window w2 containing a user object of the
>> >> > same type say uo_2.
>> >> > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
>> >> > point to the same reference as w1.uo_1 in the open event
>> >> > of w1 -Make certain changes in w2.uo_2.
>> >> > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
>> >> instance
>> >> > of uo_2.
>> >> >
>> >> > How can i do this in powerscript ? Any ideas ?
>> >> >
>> >> > Regards - Ýzak Nino
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>>
>> Bruce Armstrong [TeamSybase]
>> http://www.teamsybase.com
>>
>> TeamSybase blogs:
>> http://www.teamsybase.net/blogs
>>
>> Vote for PocketBuilder in the Mobile Village awards
>> http://www.mobilevillage.com/awards.htm
>>
>> Two 3rd party books on developing with PowerBuilder
>> http://www.pb9books.com?source=newsgroups
>>
>> Need code sample? Check out CodeXchange:
>> http://www.codexchange.sybase.com
>>
>> Preach the gospel at all times. If necessary, use words. - Francis of
>Assisi
>> http://www.needhim.org
>>
>> ---------------------------------------------------------------------
>> DISCLAIMER:
>>
>> This newsgroup message is only intended for the recipient. Given that it
>> is a posting to a public newsgroup, that means if you can read this
>> message then you are the recipient. This message may contain information
>> that is confidential and protected from disclosure. And then again,
>> it may not.
>>
>> Given that TeamSybase members are not employees of Sybase, the contents
>> of this message do not necessarily represent the views or policies of
>> Sybase. Given that TeamSybase is a diverse group of users of Sybase
>> products, the contents of this message do not necessarily represent the
>> views of a significant number of the members of TeamSybase. Given that
>the
>> author has mutliple personalities and hears voices in his head, the
>contents
>> of this message do not necessarily represent his own views.
>

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

TeamSybase blogs:
http://www.teamsybase.net/blogs

Vote for PocketBuilder in the Mobile Village awards
http://www.mobilevillage.com/awards.htm

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

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

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

---------------------------------------------------------------------
DISCLAIMER:

This newsgroup message is only intended for the recipient. Given that it
is a posting to a public newsgroup, that means if you can read this
message then you are the recipient. This message may contain information
that is confidential and protected from disclosure. And then again,
it may not.

Given that TeamSybase members are not employees of Sybase, the contents
of this message do not necessarily represent the views or policies of
Sybase. Given that TeamSybase is a diverse group of users of Sybase
products, the contents of this message do not necessarily represent the
views of a significant number of the members of TeamSybase. Given that the
author has mutliple personalities and hears voices in his head, the contents
of this message do not necessarily represent his own views.


Ýzak Nino Posted on 2004-08-10 15:24:01.0Z
Reply-To: "Ýzak Nino" <izak@boyutsis.com>
From: "Ýzak Nino" <izak@boyutsis.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub>
Subject: Re: Setting user objects
Lines: 60
Organization: BoyutSis
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2741.2600
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200
X-Original-NNTP-Posting-Host: adsluser-2832.adsl.ttnet.net.tr
Message-ID: <4118e9c8@forums-2-dub>
X-Original-Trace: 10 Aug 2004 08:29:12 -0700, adsluser-2832.adsl.ttnet.net.tr
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Aug 2004 08:15:23 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Aug 2004 08:24:01 -0700
X-Trace: forums-1-dub 1092151441 10.22.108.75 (10 Aug 2004 08:24:01 -0700)
X-Original-Trace: 10 Aug 2004 08:24:01 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7980
Article PK: 735249

It doesn't necessarily have to be a dupplicate. I would be all too glad if
I could refer (address wise, as it happens in variables by reference) to the
instance of an object in one window from another window and thus always
manipulating the same instance of a visual user object without the need of
creating another instance and wasting memory space unnecessarily. The
problem is can I have visual access to that instance of the object from
another window, show it somehow & make changes to it.

Regards - Ýzak Nino

"Scott Morris" <bogus@bogus.com> wrote in message
news:4118c2c1$1@forums-2-dub...
> I agree with Philip that your design seems to be flawed - it is a bad idea
> to duplicate an object if it represents the same "thing". However, it
would
> be nice if PB supported operator overloading like other OOP languages -
> which it does not. About the best you can do is to define a function that
> accepts an object of the same class as an argument. In the function, you
> would then "copy" the instance variables from the argument object.
>
> One example - n_cst_nodebase.of_copyto
>
> "Izak Nino" <izak@boyutsis.com> wrote in message
> news:411885ae@forums-1-dub...
> > Is there a longer answer, with more substance ?
> >
> > Regards - Izak Nino
> >
> > <Philip Salgannik> wrote in message
> > news:4117ce6d.2a1.1681692777@sybase.com...
> > Short answer - you shouldn't be doing this :-)
> >
> > > I have a window let us say w1 containing a visible user
> > > object say uo_1. In this window I set certain properties
> > > of this user object.
> > >
> > > I would like to do the following :
> > >
> > > -Call a second window w2 containing a user object of the
> > > same type say uo_2.
> > > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> > > point to the same reference as w1.uo_1 in the open event
> > > of w1 -Make certain changes in w2.uo_2.
> > > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
> > instance
> > > of uo_2.
> > >
> > > How can i do this in powerscript ? Any ideas ?
> > >
> > > Regards - Ýzak Nino
> > >
> > >
> > >
> >
> >
>
>


Scott Morris Posted on 2004-08-10 17:38:44.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub> <4118e9c8@forums-2-dub>
Subject: Re: Setting user objects
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: ip52-gadivinv-a8.atl1.exsbs.net
X-Original-NNTP-Posting-Host: ip52-gadivinv-a8.atl1.exsbs.net
Message-ID: <41190824$1@forums-1-dub>
Date: 10 Aug 2004 10:38:44 -0700
X-Trace: forums-1-dub 1092159524 65.205.162.52 (10 Aug 2004 10:38:44 -0700)
X-Original-Trace: 10 Aug 2004 10:38:44 -0700, ip52-gadivinv-a8.atl1.exsbs.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7982
Article PK: 735248

sure - just pass a reference to the object between the windows using
openwithparm

"Ýzak Nino" <izak@boyutsis.com> wrote in message
news:4118e9c8@forums-2-dub...
> It doesn't necessarily have to be a dupplicate. I would be all too glad if
> I could refer (address wise, as it happens in variables by reference) to
the
> instance of an object in one window from another window and thus always
> manipulating the same instance of a visual user object without the need of
> creating another instance and wasting memory space unnecessarily. The
> problem is can I have visual access to that instance of the object from
> another window, show it somehow & make changes to it.
>
> Regards - Ýzak Nino
>
>
> "Scott Morris" <bogus@bogus.com> wrote in message
> news:4118c2c1$1@forums-2-dub...
> > I agree with Philip that your design seems to be flawed - it is a bad
idea
> > to duplicate an object if it represents the same "thing". However, it
> would
> > be nice if PB supported operator overloading like other OOP languages -
> > which it does not. About the best you can do is to define a function
that
> > accepts an object of the same class as an argument. In the function,
you
> > would then "copy" the instance variables from the argument object.
> >
> > One example - n_cst_nodebase.of_copyto
> >
> > "Izak Nino" <izak@boyutsis.com> wrote in message
> > news:411885ae@forums-1-dub...
> > > Is there a longer answer, with more substance ?
> > >
> > > Regards - Izak Nino
> > >
> > > <Philip Salgannik> wrote in message
> > > news:4117ce6d.2a1.1681692777@sybase.com...
> > > Short answer - you shouldn't be doing this :-)
> > >
> > > > I have a window let us say w1 containing a visible user
> > > > object say uo_1. In this window I set certain properties
> > > > of this user object.
> > > >
> > > > I would like to do the following :
> > > >
> > > > -Call a second window w2 containing a user object of the
> > > > same type say uo_2.
> > > > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> > > > point to the same reference as w1.uo_1 in the open event
> > > > of w1 -Make certain changes in w2.uo_2.
> > > > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
> > > instance
> > > > of uo_2.
> > > >
> > > > How can i do this in powerscript ? Any ideas ?
> > > >
> > > > Regards - Ýzak Nino
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Ýzak Nino Posted on 2004-08-11 11:30:12.0Z
Reply-To: "Ýzak Nino" <izak@boyutsis.com>
From: "Ýzak Nino" <izak@boyutsis.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub> <4118e9c8@forums-2-dub> <41190824$1@forums-1-dub>
Subject: Re: Setting user objects
Lines: 84
Organization: BoyutSis
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2741.2600
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200
X-Original-NNTP-Posting-Host: adsluser-2832.adsl.ttnet.net.tr
Message-ID: <411a047d@forums-2-dub>
X-Original-Trace: 11 Aug 2004 04:35:25 -0700, adsluser-2832.adsl.ttnet.net.tr
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 11 Aug 2004 04:21:27 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 11 Aug 2004 04:30:12 -0700
X-Trace: forums-1-dub 1092223812 10.22.108.75 (11 Aug 2004 04:30:12 -0700)
X-Original-Trace: 11 Aug 2004 04:30:12 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7985
Article PK: 735252

Will I be able to display, visualize the object in the new window ? I have
been able reach its properties but been unable to display & use it in the
new window.

Regards - Ýzak

"Scott Morris" <bogus@bogus.com> wrote in message
news:41190824$1@forums-1-dub...
> sure - just pass a reference to the object between the windows using
> openwithparm
>
> "Ýzak Nino" <izak@boyutsis.com> wrote in message
> news:4118e9c8@forums-2-dub...
> > It doesn't necessarily have to be a dupplicate. I would be all too glad
if
> > I could refer (address wise, as it happens in variables by reference) to
> the
> > instance of an object in one window from another window and thus always
> > manipulating the same instance of a visual user object without the need
of
> > creating another instance and wasting memory space unnecessarily. The
> > problem is can I have visual access to that instance of the object from
> > another window, show it somehow & make changes to it.
> >
> > Regards - Ýzak Nino
> >
> >
> > "Scott Morris" <bogus@bogus.com> wrote in message
> > news:4118c2c1$1@forums-2-dub...
> > > I agree with Philip that your design seems to be flawed - it is a bad
> idea
> > > to duplicate an object if it represents the same "thing". However, it
> > would
> > > be nice if PB supported operator overloading like other OOP
languages -
> > > which it does not. About the best you can do is to define a function
> that
> > > accepts an object of the same class as an argument. In the function,
> you
> > > would then "copy" the instance variables from the argument object.
> > >
> > > One example - n_cst_nodebase.of_copyto
> > >
> > > "Izak Nino" <izak@boyutsis.com> wrote in message
> > > news:411885ae@forums-1-dub...
> > > > Is there a longer answer, with more substance ?
> > > >
> > > > Regards - Izak Nino
> > > >
> > > > <Philip Salgannik> wrote in message
> > > > news:4117ce6d.2a1.1681692777@sybase.com...
> > > > Short answer - you shouldn't be doing this :-)
> > > >
> > > > > I have a window let us say w1 containing a visible user
> > > > > object say uo_1. In this window I set certain properties
> > > > > of this user object.
> > > > >
> > > > > I would like to do the following :
> > > > >
> > > > > -Call a second window w2 containing a user object of the
> > > > > same type say uo_2.
> > > > > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> > > > > point to the same reference as w1.uo_1 in the open event
> > > > > of w1 -Make certain changes in w2.uo_2.
> > > > > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
> > > > instance
> > > > > of uo_2.
> > > > >
> > > > > How can i do this in powerscript ? Any ideas ?
> > > > >
> > > > > Regards - Ýzak Nino
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Scott Morris Posted on 2004-08-11 12:40:41.0Z
From: "Scott Morris" <bogus@bogus.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub> <4118e9c8@forums-2-dub> <41190824$1@forums-1-dub> <411a047d@forums-2-dub>
Subject: Re: Setting user objects
Lines: 103
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Original-NNTP-Posting-Host: ip52-gadivinv-a8.atl1.exsbs.net
Message-ID: <411a1504$1@forums-2-dub>
X-Original-Trace: 11 Aug 2004 05:45:56 -0700, ip52-gadivinv-a8.atl1.exsbs.net
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 11 Aug 2004 05:31:58 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 11 Aug 2004 05:40:41 -0700
X-Trace: forums-1-dub 1092228041 10.22.108.75 (11 Aug 2004 05:40:41 -0700)
X-Original-Trace: 11 Aug 2004 05:40:41 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7986
Article PK: 735254

You will not be able to pass a graphical user object and re-use it on the
receiving window. You can still access its properties and data.
Therefore, you will need to "copy" the appropriate values from the passed
object to the visual object in the window. You may want to revisit your
design - perhaps there is a better way to accomplish your task.

"Ýzak Nino" <izak@boyutsis.com> wrote in message
news:411a047d@forums-2-dub...
> Will I be able to display, visualize the object in the new window ? I have
> been able reach its properties but been unable to display & use it in the
> new window.
>
> Regards - Ýzak
>
> "Scott Morris" <bogus@bogus.com> wrote in message
> news:41190824$1@forums-1-dub...
> > sure - just pass a reference to the object between the windows using
> > openwithparm
> >
> > "Ýzak Nino" <izak@boyutsis.com> wrote in message
> > news:4118e9c8@forums-2-dub...
> > > It doesn't necessarily have to be a dupplicate. I would be all too
glad
> if
> > > I could refer (address wise, as it happens in variables by reference)
to
> > the
> > > instance of an object in one window from another window and thus
always
> > > manipulating the same instance of a visual user object without the
need
> of
> > > creating another instance and wasting memory space unnecessarily. The
> > > problem is can I have visual access to that instance of the object
from
> > > another window, show it somehow & make changes to it.
> > >
> > > Regards - Ýzak Nino
> > >
> > >
> > > "Scott Morris" <bogus@bogus.com> wrote in message
> > > news:4118c2c1$1@forums-2-dub...
> > > > I agree with Philip that your design seems to be flawed - it is a
bad
> > idea
> > > > to duplicate an object if it represents the same "thing". However,
it
> > > would
> > > > be nice if PB supported operator overloading like other OOP
> languages -
> > > > which it does not. About the best you can do is to define a
function
> > that
> > > > accepts an object of the same class as an argument. In the
function,
> > you
> > > > would then "copy" the instance variables from the argument object.
> > > >
> > > > One example - n_cst_nodebase.of_copyto
> > > >
> > > > "Izak Nino" <izak@boyutsis.com> wrote in message
> > > > news:411885ae@forums-1-dub...
> > > > > Is there a longer answer, with more substance ?
> > > > >
> > > > > Regards - Izak Nino
> > > > >
> > > > > <Philip Salgannik> wrote in message
> > > > > news:4117ce6d.2a1.1681692777@sybase.com...
> > > > > Short answer - you shouldn't be doing this :-)
> > > > >
> > > > > > I have a window let us say w1 containing a visible user
> > > > > > object say uo_1. In this window I set certain properties
> > > > > > of this user object.
> > > > > >
> > > > > > I would like to do the following :
> > > > > >
> > > > > > -Call a second window w2 containing a user object of the
> > > > > > same type say uo_2.
> > > > > > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> > > > > > point to the same reference as w1.uo_1 in the open event
> > > > > > of w1 -Make certain changes in w2.uo_2.
> > > > > > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
> > > > > instance
> > > > > > of uo_2.
> > > > > >
> > > > > > How can i do this in powerscript ? Any ideas ?
> > > > > >
> > > > > > Regards - Ýzak Nino
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Ýzak Nino Posted on 2004-08-11 13:08:50.0Z
Reply-To: "Ýzak Nino" <izak@boyutsis.com>
From: "Ýzak Nino" <izak@boyutsis.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub> <4118e9c8@forums-2-dub> <41190824$1@forums-1-dub> <411a047d@forums-2-dub> <411a1504$1@forums-2-dub>
Subject: Re: Setting user objects
Lines: 114
Organization: BoyutSis
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2741.2600
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200
X-Original-NNTP-Posting-Host: adsluser-2832.adsl.ttnet.net.tr
Message-ID: <411a1b9e@forums-2-dub>
X-Original-Trace: 11 Aug 2004 06:14:06 -0700, adsluser-2832.adsl.ttnet.net.tr
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 11 Aug 2004 06:00:08 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 11 Aug 2004 06:08:50 -0700
X-Trace: forums-1-dub 1092229730 10.22.108.75 (11 Aug 2004 06:08:50 -0700)
X-Original-Trace: 11 Aug 2004 06:08:50 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7987
Article PK: 735255

Thanks.

"Scott Morris" <bogus@bogus.com> wrote in message
news:411a1504$1@forums-2-dub...
> You will not be able to pass a graphical user object and re-use it on the
> receiving window. You can still access its properties and data.
> Therefore, you will need to "copy" the appropriate values from the passed
> object to the visual object in the window. You may want to revisit your
> design - perhaps there is a better way to accomplish your task.
>
> "Ýzak Nino" <izak@boyutsis.com> wrote in message
> news:411a047d@forums-2-dub...
> > Will I be able to display, visualize the object in the new window ? I
have
> > been able reach its properties but been unable to display & use it in
the
> > new window.
> >
> > Regards - Ýzak
> >
> > "Scott Morris" <bogus@bogus.com> wrote in message
> > news:41190824$1@forums-1-dub...
> > > sure - just pass a reference to the object between the windows using
> > > openwithparm
> > >
> > > "Ýzak Nino" <izak@boyutsis.com> wrote in message
> > > news:4118e9c8@forums-2-dub...
> > > > It doesn't necessarily have to be a dupplicate. I would be all too
> glad
> > if
> > > > I could refer (address wise, as it happens in variables by
reference)
> to
> > > the
> > > > instance of an object in one window from another window and thus
> always
> > > > manipulating the same instance of a visual user object without the
> need
> > of
> > > > creating another instance and wasting memory space unnecessarily.
The
> > > > problem is can I have visual access to that instance of the object
> from
> > > > another window, show it somehow & make changes to it.
> > > >
> > > > Regards - Ýzak Nino
> > > >
> > > >
> > > > "Scott Morris" <bogus@bogus.com> wrote in message
> > > > news:4118c2c1$1@forums-2-dub...
> > > > > I agree with Philip that your design seems to be flawed - it is a
> bad
> > > idea
> > > > > to duplicate an object if it represents the same "thing".
However,
> it
> > > > would
> > > > > be nice if PB supported operator overloading like other OOP
> > languages -
> > > > > which it does not. About the best you can do is to define a
> function
> > > that
> > > > > accepts an object of the same class as an argument. In the
> function,
> > > you
> > > > > would then "copy" the instance variables from the argument object.
> > > > >
> > > > > One example - n_cst_nodebase.of_copyto
> > > > >
> > > > > "Izak Nino" <izak@boyutsis.com> wrote in message
> > > > > news:411885ae@forums-1-dub...
> > > > > > Is there a longer answer, with more substance ?
> > > > > >
> > > > > > Regards - Izak Nino
> > > > > >
> > > > > > <Philip Salgannik> wrote in message
> > > > > > news:4117ce6d.2a1.1681692777@sybase.com...
> > > > > > Short answer - you shouldn't be doing this :-)
> > > > > >
> > > > > > > I have a window let us say w1 containing a visible user
> > > > > > > object say uo_1. In this window I set certain properties
> > > > > > > of this user object.
> > > > > > >
> > > > > > > I would like to do the following :
> > > > > > >
> > > > > > > -Call a second window w2 containing a user object of the
> > > > > > > same type say uo_2.
> > > > > > > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> > > > > > > point to the same reference as w1.uo_1 in the open event
> > > > > > > of w1 -Make certain changes in w2.uo_2.
> > > > > > > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
> > > > > > instance
> > > > > > > of uo_2.
> > > > > > >
> > > > > > > How can i do this in powerscript ? Any ideas ?
> > > > > > >
> > > > > > > Regards - Ýzak Nino
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Ýzak Nino Posted on 2004-08-11 07:01:12.0Z
Reply-To: "Ýzak Nino" <izak@boyutsis.com>
From: "Ýzak Nino" <izak@boyutsis.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41179c6a@forums-1-dub> <4117ce6d.2a1.1681692777@sybase.com> <411885ae@forums-1-dub> <4118c2c1$1@forums-2-dub> <4118e9c8@forums-2-dub> <41190824$1@forums-1-dub>
Subject: Re: Setting user objects
Lines: 83
Organization: BoyutSis
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2741.2600
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2742.200
X-Original-NNTP-Posting-Host: adsluser-2832.adsl.ttnet.net.tr
Message-ID: <4119c573@forums-2-dub>
X-Original-Trace: 11 Aug 2004 00:06:27 -0700, adsluser-2832.adsl.ttnet.net.tr
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Aug 2004 23:52:31 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 11 Aug 2004 00:01:12 -0700
X-Trace: forums-1-dub 1092207672 10.22.108.75 (11 Aug 2004 00:01:12 -0700)
X-Original-Trace: 11 Aug 2004 00:01:12 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7984
Article PK: 735253

Thanks to you & to all the paticipants.

Regards - Ýzak Nino

"Scott Morris" <bogus@bogus.com> wrote in message
news:41190824$1@forums-1-dub...
> sure - just pass a reference to the object between the windows using
> openwithparm
>
> "Ýzak Nino" <izak@boyutsis.com> wrote in message
> news:4118e9c8@forums-2-dub...
> > It doesn't necessarily have to be a dupplicate. I would be all too glad
if
> > I could refer (address wise, as it happens in variables by reference) to
> the
> > instance of an object in one window from another window and thus always
> > manipulating the same instance of a visual user object without the need
of
> > creating another instance and wasting memory space unnecessarily. The
> > problem is can I have visual access to that instance of the object from
> > another window, show it somehow & make changes to it.
> >
> > Regards - Ýzak Nino
> >
> >
> > "Scott Morris" <bogus@bogus.com> wrote in message
> > news:4118c2c1$1@forums-2-dub...
> > > I agree with Philip that your design seems to be flawed - it is a bad
> idea
> > > to duplicate an object if it represents the same "thing". However, it
> > would
> > > be nice if PB supported operator overloading like other OOP
languages -
> > > which it does not. About the best you can do is to define a function
> that
> > > accepts an object of the same class as an argument. In the function,
> you
> > > would then "copy" the instance variables from the argument object.
> > >
> > > One example - n_cst_nodebase.of_copyto
> > >
> > > "Izak Nino" <izak@boyutsis.com> wrote in message
> > > news:411885ae@forums-1-dub...
> > > > Is there a longer answer, with more substance ?
> > > >
> > > > Regards - Izak Nino
> > > >
> > > > <Philip Salgannik> wrote in message
> > > > news:4117ce6d.2a1.1681692777@sybase.com...
> > > > Short answer - you shouldn't be doing this :-)
> > > >
> > > > > I have a window let us say w1 containing a visible user
> > > > > object say uo_1. In this window I set certain properties
> > > > > of this user object.
> > > > >
> > > > > I would like to do the following :
> > > > >
> > > > > -Call a second window w2 containing a user object of the
> > > > > same type say uo_2.
> > > > > -Set w2.uo_2 = w1.uo_1 ie create an identical copy or
> > > > > point to the same reference as w1.uo_1 in the open event
> > > > > of w1 -Make certain changes in w2.uo_2.
> > > > > -Set w1.uo_1 = w2.uo_2 ie set uo_1 to the changed
> > > > instance
> > > > > of uo_2.
> > > > >
> > > > > How can i do this in powerscript ? Any ideas ?
> > > > >
> > > > > Regards - Ýzak Nino
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>