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.

inheriting

6 posts in Objects Last posting was on 2003-07-17 22:23:17.0Z
Leon Mandel Posted on 2003-07-16 18:44:26.0Z
Newsgroups: sybase.public.powerbuilder.objects
Date: Wed, 16 Jul 2003 13:44:26 -0500
From: Leon Mandel <leon@weepirate.com>
Reply-To: leon@weepirate.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: inheriting
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 204.65.60.233
Lines: 11
Message-ID: <364_3F159D0A.9070204@weepirate.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7488
Article PK: 734775

I many windows that was created from scratch (inherited from window)

This is a maintenance project of an OLD system (not all that well
designed system either)

Well, now I have a w_ancestor that I'd like all those windows to inherit
from.

Is there anything I can do, other than re-inheriting and copy/pasting
(i.e. recreating all those windows)? Like maybe in the source editor?


Any advice helps.

Thanks.


Tyler Craft Posted on 2003-07-16 18:50:22.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Tyler Craft" <NoSpamTyler.Craft@gnb.ca>
Subject: Re: inheriting
Date: Wed, 16 Jul 2003 15:50:22 -0300
Lines: 43
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: 182.27.gnb.ca 142.139.182.27
Message-ID: <364_uMPhJx8SDHA.342@forums-2-dub>
References: <364_3F159D0A.9070204@weepirate.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7489
Article PK: 734777

Edit Source

Replace "Window" with "w_ancestor" in Two places. One of the main problems
you may run into duplicate variables and so on but if you get (PBSEARCH) or
some such program you can search for all occurances of a variable.

/*Old*/
global type w_case from Window
end type
end forward

global type w_case from Window
end type

/*New*/
global type w_case from w_ancestor
end type
end forward

global type w_case from w_ancestor
end type

"Leon Mandel" <leon@weepirate.com> wrote in message
news:3F159D0A.9070204@weepirate.com...
> I many windows that was created from scratch (inherited from window)
>
> This is a maintenance project of an OLD system (not all that well
> designed system either)
>
> Well, now I have a w_ancestor that I'd like all those windows to inherit
> from.
>
> Is there anything I can do, other than re-inheriting and copy/pasting
> (i.e. recreating all those windows)? Like maybe in the source editor?
>
>
> Any advice helps.
>
> Thanks.
>


Leon Mandel Posted on 2003-07-16 21:43:33.0Z
Newsgroups: sybase.public.powerbuilder.objects
Date: Wed, 16 Jul 2003 16:43:33 -0500
From: Leon Mandel <leon@weepirate.com>
Reply-To: leon@weepirate.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: inheriting
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 204.65.60.233
Lines: 29
Message-ID: <364_3F15C705.3020807@weepirate.com>
References: <364_3F159D0A.9070204@weepirate.com> <364_uMPhJx8SDHA.342@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:7490
Article PK: 734774

so that should do it, huh?

czool

Tyler Craft wrote:
> Edit Source
>
> Replace "Window" with "w_ancestor" in Two places. One of the main problems
> you may run into duplicate variables and so on but if you get (PBSEARCH) or
> some such program you can search for all occurances of a variable.
>
> /*Old*/
> global type w_case from Window
> end type
> end forward
>
> global type w_case from Window
> end type
>
> /*New*/
> global type w_case from w_ancestor
> end type
> end forward
>
> global type w_case from w_ancestor
> end type
>
>
> "Leon Mandel" <leon@weepirate.com> wrote in message
> news:3F159D0A.9070204@weepirate.com...
>
>>I many windows that was created from scratch (inherited from window)
>>
>>This is a maintenance project of an OLD system (not all that well
>>designed system either)
>>
>>Well, now I have a w_ancestor that I'd like all those windows to inherit
>>from.
>>
>>Is there anything I can do, other than re-inheriting and copy/pasting
>>(i.e. recreating all those windows)? Like maybe in the source editor?
>>
>>
>>Any advice helps.
>>
>>Thanks.
>>
>
>
>


Leon Mandel Posted on 2003-07-16 22:27:10.0Z
Newsgroups: sybase.public.powerbuilder.objects
Date: Wed, 16 Jul 2003 17:27:10 -0500
From: Leon Mandel <leon@weepirate.com>
Reply-To: leon@weepirate.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: inheriting
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 204.65.60.51
Lines: 31
Message-ID: <364_3F15D13E.8060706@weepirate.com>
References: <364_3F159D0A.9070204@weepirate.com> <364_uMPhJx8SDHA.342@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:7491
Article PK: 734778

I did as advized, regenerated, but the parent's open event, for
instrance, does not trigger?...

Tyler Craft wrote:
> Edit Source
>
> Replace "Window" with "w_ancestor" in Two places. One of the main problems
> you may run into duplicate variables and so on but if you get (PBSEARCH) or
> some such program you can search for all occurances of a variable.
>
> /*Old*/
> global type w_case from Window
> end type
> end forward
>
> global type w_case from Window
> end type
>
> /*New*/
> global type w_case from w_ancestor
> end type
> end forward
>
> global type w_case from w_ancestor
> end type
>
>
> "Leon Mandel" <leon@weepirate.com> wrote in message
> news:3F159D0A.9070204@weepirate.com...
>
>>I many windows that was created from scratch (inherited from window)
>>
>>This is a maintenance project of an OLD system (not all that well
>>designed system either)
>>
>>Well, now I have a w_ancestor that I'd like all those windows to inherit
>>from.
>>
>>Is there anything I can do, other than re-inheriting and copy/pasting
>>(i.e. recreating all those windows)? Like maybe in the source editor?
>>
>>
>>Any advice helps.
>>
>>Thanks.
>>
>
>
>


Andrew Giulinn Posted on 2003-07-17 02:07:58.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Andrew Giulinn" <oscar@NO.dsa.SPAM.com.PLEASE.au>
Subject: Re: inheriting
Date: Thu, 17 Jul 2003 11:37:58 +0930
Lines: 73
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
NNTP-Posting-Host: server.dsa.com.au 150.101.6.85
Message-ID: <364_#JvG3lATDHA.342@forums-2-dub>
References: <364_3F159D0A.9070204@weepirate.com> <364_uMPhJx8SDHA.342@forums-2-dub> <364_3F15D13E.8060706@weepirate.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7492
Article PK: 734779

Do you mean the ancestor's Open event when you say "the parent's open
event"? If so, then it is because the descendant's Open event needs to have
the "extend" flag activated. Your concrete window would not have had a
"SUPER::Open()" in its source so, once you made it a descendant, it was
overriding the ancestor event, rather than extending it.

Open your concrete window, go to the Open event, right click in the source
and choose "Extend Ancestor Script". Then you should be right to go.

Cheers


--
Andrew Giulinn
Senior Analyst/Programmer
Daniel Systems Australia

"Leon Mandel" <leon@weepirate.com> wrote in message
news:3F15D13E.8060706@weepirate.com...
> I did as advized, regenerated, but the parent's open event, for
> instrance, does not trigger?...
>
> Tyler Craft wrote:
> > Edit Source
> >
> > Replace "Window" with "w_ancestor" in Two places. One of the main
problems
> > you may run into duplicate variables and so on but if you get (PBSEARCH)
or
> > some such program you can search for all occurances of a variable.
> >
> > /*Old*/
> > global type w_case from Window
> > end type
> > end forward
> >
> > global type w_case from Window
> > end type
> >
> > /*New*/
> > global type w_case from w_ancestor
> > end type
> > end forward
> >
> > global type w_case from w_ancestor
> > end type
> >
> >
> > "Leon Mandel" <leon@weepirate.com> wrote in message
> > news:3F159D0A.9070204@weepirate.com...
> >
> >>I many windows that was created from scratch (inherited from window)
> >>
> >>This is a maintenance project of an OLD system (not all that well
> >>designed system either)
> >>
> >>Well, now I have a w_ancestor that I'd like all those windows to inherit
> >>from.
> >>
> >>Is there anything I can do, other than re-inheriting and copy/pasting
> >>(i.e. recreating all those windows)? Like maybe in the source editor?
> >>
> >>
> >>Any advice helps.
> >>
> >>Thanks.
> >>
> >
> >
> >
>


Leon Mandel Posted on 2003-07-17 22:23:17.0Z
Newsgroups: sybase.public.powerbuilder.objects
Date: Thu, 17 Jul 2003 17:23:17 -0500
From: Leon Mandel <leon@weepirate.com>
Reply-To: leon@weepirate.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: inheriting
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 204.65.60.78
Lines: 55
Message-ID: <364_3F1721D5.4060905@weepirate.com>
References: <364_3F159D0A.9070204@weepirate.com> <364_uMPhJx8SDHA.342@forums-2-dub> <364_3F15D13E.8060706@weepirate.com> <364_#JvG3lATDHA.342@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:7493
Article PK: 734782

great!

it makes so much sense! i remmeber not having to code that in PB 6.5
which is what threw me off

kool.

Andrew Giulinn wrote:
> Do you mean the ancestor's Open event when you say "the parent's open
> event"? If so, then it is because the descendant's Open event needs to have
> the "extend" flag activated. Your concrete window would not have had a
> "SUPER::Open()" in its source so, once you made it a descendant, it was
> overriding the ancestor event, rather than extending it.
>
> Open your concrete window, go to the Open event, right click in the source
> and choose "Extend Ancestor Script". Then you should be right to go.
>
> Cheers
>
>
> --
> Andrew Giulinn
> Senior Analyst/Programmer
> Daniel Systems Australia
>
> "Leon Mandel" <leon@weepirate.com> wrote in message
> news:3F15D13E.8060706@weepirate.com...
>
>>I did as advized, regenerated, but the parent's open event, for
>>instrance, does not trigger?...
>>
>>Tyler Craft wrote:
>>
>>>Edit Source
>>>
>>>Replace "Window" with "w_ancestor" in Two places. One of the main
>>
> problems
>
>>>you may run into duplicate variables and so on but if you get (PBSEARCH)
>>
> or
>
>>>some such program you can search for all occurances of a variable.
>>>
>>>/*Old*/
>>>global type w_case from Window
>>>end type
>>>end forward
>>>
>>>global type w_case from Window
>>>end type
>>>
>>>/*New*/
>>>global type w_case from w_ancestor
>>>end type
>>>end forward
>>>
>>>global type w_case from w_ancestor
>>>end type
>>>
>>>
>>>"Leon Mandel" <leon@weepirate.com> wrote in message
>>>news:3F159D0A.9070204@weepirate.com...
>>>
>>>
>>>>I many windows that was created from scratch (inherited from window)
>>>>
>>>>This is a maintenance project of an OLD system (not all that well
>>>>designed system either)
>>>>
>>>>Well, now I have a w_ancestor that I'd like all those windows to inherit
>>>>from.
>>>>
>>>>Is there anything I can do, other than re-inheriting and copy/pasting
>>>>(i.e. recreating all those windows)? Like maybe in the source editor?
>>>>
>>>>
>>>>Any advice helps.
>>>>
>>>>Thanks.
>>>>
>>>
>>>
>>>
>
>