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.

userobject inherited

5 posts in Objects Last posting was on 2007-08-24 16:06:15.0Z
Jean Wang Posted on 2007-08-23 18:58:20.0Z
From: "Jean Wang" <j.wang@csdcsystems.com>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 209.250.146.210
X-Newsreader: AspNNTP 1.50 (JodoHost)
Subject: userobject inherited
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.187.108.200
X-Original-NNTP-Posting-Host: 64.187.108.200
Message-ID: <46cdd8cc@forums-1-dub>
Date: 23 Aug 2007 11:58:20 -0700
X-Trace: forums-1-dub 1187895500 64.187.108.200 (23 Aug 2007 11:58:20 -0700)
X-Original-Trace: 23 Aug 2007 11:58:20 -0700, 64.187.108.200
Lines: 21
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9424
Article PK: 736587

Hello;

I need to make one action happening on each user object. For example, showing a
messagebox.


Then I created an userobject "usb_1" and I coded the script in contructor event.
For example :
Messagebox('''here')

Then another user object "usb_2" was inherited from usb_1.

Then I was expecting to see the message box showing up when usb_2 is active
(runing) However it did not happen.


Is some thing wrong? Please help?

Jean
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Chris Werner Posted on 2007-08-24 10:14:14.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.objects
References: <46cdd8cc@forums-1-dub>
Subject: Re: userobject inherited
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.8.156.42
X-Original-NNTP-Posting-Host: 62.8.156.42
Message-ID: <46ceaf76$1@forums-1-dub>
Date: 24 Aug 2007 03:14:14 -0700
X-Trace: forums-1-dub 1187950454 62.8.156.42 (24 Aug 2007 03:14:14 -0700)
X-Original-Trace: 24 Aug 2007 03:14:14 -0700, 62.8.156.42
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9425
Article PK: 736581

Hi Jean,

what do you mean with "when usb_2 is active (runing)"?
If you code something in the constructor of an ancestor
userobject this code will be executed for any descendant
of the userobject when it is created:

usb_2 luo_usb
luo_usb = create usb_1

Unless the constructor event is overridden in usb_2.
BTW Messagebox('''here') doesn't looks like correct
PowerScript.

HTH

Chris Werner
f+s software gmbh


"Jean Wang" <j.wang@csdcsystems.com> schrieb im Newsbeitrag
news:46cdd8cc@forums-1-dub...

> Hello;
>
> I need to make one action happening on each user object. For example,
> showing a
> messagebox.
>
>
> Then I created an userobject "usb_1" and I coded the script in contructor
> event.
> For example :
> Messagebox('''here')
>
> Then another user object "usb_2" was inherited from usb_1.
>
> Then I was expecting to see the message box showing up when usb_2 is
> active
> (runing) However it did not happen.
>
>
> Is some thing wrong? Please help?
>
> Jean
> ---== Posted via the PFCGuide Web Newsreader ==---
> http://www.pfcguide.com/_newsgroups/group_list.asp


Jean Wang Posted on 2007-08-24 14:14:37.0Z
From: "Jean Wang" <j.wang@csdcsystems.com>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 209.250.146.210
References: <46cdd8cc@forums-1-dub> <46ceaf76$1@forums-1-dub>
X-Newsreader: AspNNTP 1.50 (JodoHost)
Subject: Re: userobject inherited
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.187.108.200
X-Original-NNTP-Posting-Host: 64.187.108.200
Message-ID: <46cee7cd$1@forums-1-dub>
Date: 24 Aug 2007 07:14:37 -0700
X-Trace: forums-1-dub 1187964877 64.187.108.200 (24 Aug 2007 07:14:37 -0700)
X-Original-Trace: 24 Aug 2007 07:14:37 -0700, 64.187.108.200
Lines: 67
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9426
Article PK: 736585

On 24 Aug 2007 03:14:14 -0700,
in sybase.public.powerbuilder.objects

Chris Werner <cwAT{PleaseNoSpam}f-s.de> wrote:
>Hi Jean,
>
>what do you mean with "when usb_2 is active (runing)"?
>If you code something in the constructor of an ancestor
>userobject this code will be executed for any descendant
>of the userobject when it is created:
>
> usb_2 luo_usb
> luo_usb = create usb_1
>
>Unless the constructor event is overridden in usb_2.
>BTW Messagebox('''here') doesn't looks like correct
>PowerScript.
>
>HTH
>
>Chris Werner
>f+s software gmbh
>
>
>"Jean Wang" <j.wang@csdcsystems.com> schrieb im Newsbeitrag
>news:46cdd8cc@forums-1-dub...
>> Hello;
>>
>> I need to make one action happening on each user object. For example,
>> showing a
>> messagebox.
>>
>>
>> Then I created an userobject "usb_1" and I coded the script in contructor
>> event.
>> For example :
>> Messagebox('''here')
>>
>> Then another user object "usb_2" was inherited from usb_1.
>>
>> Then I was expecting to see the message box showing up when usb_2 is
>> active
>> (runing) However it did not happen.
>>
>>
>> Is some thing wrong? Please help?
>>
>> Jean
>> ---== Posted via the PFCGuide Web Newsreader ==---
>> http://www.pfcguide.com/_newsgroups/group_list.asp
>
>

Hi! Chris;

>what do you mean with "when usb_2 is active (runing)"?

I mean when application is running, I clicked a button, a window win_2, on which
usb_2 is, opens, the message box:Messagebox('','here')is not poping up.

>Unless the constructor event is overridden in usb_2.

How do I know constructor event is overridden in usb_2. I put
Messagebox('','here') on the controctor event of usb_2, does it overridden the
usb_1's code? If I want to overridden, how to do?

Thank you very much for your help.

Jean


Chris Werner Posted on 2007-08-24 15:02:25.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.objects
References: <46cdd8cc@forums-1-dub> <46ceaf76$1@forums-1-dub> <46cee7cd$1@forums-1-dub>
Subject: Re: userobject inherited
Lines: 88
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.8.156.42
X-Original-NNTP-Posting-Host: 62.8.156.42
Message-ID: <46cef301$1@forums-1-dub>
Date: 24 Aug 2007 08:02:25 -0700
X-Trace: forums-1-dub 1187967745 62.8.156.42 (24 Aug 2007 08:02:25 -0700)
X-Original-Trace: 24 Aug 2007 08:02:25 -0700, 62.8.156.42
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9427
Article PK: 736584

Hi Jean,

the code in a PowerBuilder Event overrides the ancestor
code when you uncheck "Extend Ancestor Event" in the
popup menu of the editor. For events the option is checked
initially. To find the actual setting right click to open the
ancestor menu an see if the option is checked.

Kind regards

Chris Werner
f+s software gmbh


"Jean Wang" <j.wang@csdcsystems.com> schrieb im Newsbeitrag
news:46cee7cd$1@forums-1-dub...

> On 24 Aug 2007 03:14:14 -0700,
> in sybase.public.powerbuilder.objects
> Chris Werner <cwAT{PleaseNoSpam}f-s.de> wrote:
>>Hi Jean,
>>
>>what do you mean with "when usb_2 is active (runing)"?
>>If you code something in the constructor of an ancestor
>>userobject this code will be executed for any descendant
>>of the userobject when it is created:
>>
>> usb_2 luo_usb
>> luo_usb = create usb_1
>>
>>Unless the constructor event is overridden in usb_2.
>>BTW Messagebox('''here') doesn't looks like correct
>>PowerScript.
>>
>>HTH
>>
>>Chris Werner
>>f+s software gmbh
>>
>>
>>"Jean Wang" <j.wang@csdcsystems.com> schrieb im Newsbeitrag
>>news:46cdd8cc@forums-1-dub...
>>> Hello;
>>>
>>> I need to make one action happening on each user object. For example,
>>> showing a
>>> messagebox.
>>>
>>>
>>> Then I created an userobject "usb_1" and I coded the script in
>>> contructor
>>> event.
>>> For example :
>>> Messagebox('''here')
>>>
>>> Then another user object "usb_2" was inherited from usb_1.
>>>
>>> Then I was expecting to see the message box showing up when usb_2 is
>>> active
>>> (runing) However it did not happen.
>>>
>>>
>>> Is some thing wrong? Please help?
>>>
>>> Jean
>>> ---== Posted via the PFCGuide Web Newsreader ==---
>>> http://www.pfcguide.com/_newsgroups/group_list.asp
>>
>>
> Hi! Chris;
>
>>what do you mean with "when usb_2 is active (runing)"?
>
> I mean when application is running, I clicked a button, a window win_2, on
> which
> usb_2 is, opens, the message box:Messagebox('','here')is not poping up.
>
>>Unless the constructor event is overridden in usb_2.
>
> How do I know constructor event is overridden in usb_2. I put
> Messagebox('','here') on the controctor event of usb_2, does it overridden
> the
> usb_1's code? If I want to overridden, how to do?
>
> Thank you very much for your help.
>
> Jean


Jean Wang Posted on 2007-08-24 16:06:15.0Z
From: "Jean Wang" <j.wang@csdcsystems.com>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 209.250.146.210
References: <46cdd8cc@forums-1-dub> <46ceaf76$1@forums-1-dub> <46cee7cd$1@forums-1-dub> <46cef301$1@forums-1-dub>
X-Newsreader: AspNNTP 1.50 (JodoHost)
Subject: Re: userobject inherited
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.187.108.200
X-Original-NNTP-Posting-Host: 64.187.108.200
Message-ID: <46cf01f7@forums-1-dub>
Date: 24 Aug 2007 09:06:15 -0700
X-Trace: forums-1-dub 1187971575 64.187.108.200 (24 Aug 2007 09:06:15 -0700)
X-Original-Trace: 24 Aug 2007 09:06:15 -0700, 64.187.108.200
Lines: 97
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9428
Article PK: 736583

On 24 Aug 2007 08:02:25 -0700,
in sybase.public.powerbuilder.objects

Chris Werner <cwAT{PleaseNoSpam}f-s.de> wrote:
>Hi Jean,
>
>the code in a PowerBuilder Event overrides the ancestor
>code when you uncheck "Extend Ancestor Event" in the
>popup menu of the editor. For events the option is checked
>initially. To find the actual setting right click to open the
>ancestor menu an see if the option is checked.
>
>Kind regards
>
>Chris Werner
>f+s software gmbh
>
>
>"Jean Wang" <j.wang@csdcsystems.com> schrieb im Newsbeitrag
>news:46cee7cd$1@forums-1-dub...
>> On 24 Aug 2007 03:14:14 -0700,
>> in sybase.public.powerbuilder.objects
>> Chris Werner <cwAT{PleaseNoSpam}f-s.de> wrote:
>>>Hi Jean,
>>>
>>>what do you mean with "when usb_2 is active (runing)"?
>>>If you code something in the constructor of an ancestor
>>>userobject this code will be executed for any descendant
>>>of the userobject when it is created:
>>>
>>> usb_2 luo_usb
>>> luo_usb = create usb_1
>>>
>>>Unless the constructor event is overridden in usb_2.
>>>BTW Messagebox('''here') doesn't looks like correct
>>>PowerScript.
>>>
>>>HTH
>>>
>>>Chris Werner
>>>f+s software gmbh
>>>
>>>
>>>"Jean Wang" <j.wang@csdcsystems.com> schrieb im Newsbeitrag
>>>news:46cdd8cc@forums-1-dub...
>>>> Hello;
>>>>
>>>> I need to make one action happening on each user object. For example,
>>>> showing a
>>>> messagebox.
>>>>
>>>>
>>>> Then I created an userobject "usb_1" and I coded the script in
>>>> contructor
>>>> event.
>>>> For example :
>>>> Messagebox('''here')
>>>>
>>>> Then another user object "usb_2" was inherited from usb_1.
>>>>
>>>> Then I was expecting to see the message box showing up when usb_2 is
>>>> active
>>>> (runing) However it did not happen.
>>>>
>>>>
>>>> Is some thing wrong? Please help?
>>>>
>>>> Jean
>>>> ---== Posted via the PFCGuide Web Newsreader ==---
>>>> http://www.pfcguide.com/_newsgroups/group_list.asp
>>>
>>>
>> Hi! Chris;
>>
>>>what do you mean with "when usb_2 is active (runing)"?
>>
>> I mean when application is running, I clicked a button, a window win_2, on
>> which
>> usb_2 is, opens, the message box:Messagebox('','here')is not poping up.
>>
>>>Unless the constructor event is overridden in usb_2.
>>
>> How do I know constructor event is overridden in usb_2. I put
>> Messagebox('','here') on the controctor event of usb_2, does it overridden
>> the
>> usb_1's code? If I want to overridden, how to do?
>>
>> Thank you very much for your help.
>>
>> Jean
>
>

Thank very much Chris. I got it. I checked, "Extend Ancestor Event" was
unchecked. It answered my questions.

Jean