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.

tabpage - accessing functions/events in other tabpages

7 posts in Objects Last posting was on 2005-05-02 08:11:49.0Z
M.Erlinger Posted on 2005-04-29 09:50:42.0Z
From: "M.Erlinger" <michael.erlinger@vienna.at>
Newsgroups: sybase.public.powerbuilder.objects
Subject: tabpage - accessing functions/events in other tabpages
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 62.212.169.105
Message-ID: <42720370@forums-2-dub>
X-Original-Trace: 29 Apr 2005 02:50:40 -0700, 62.212.169.105
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 29 Apr 2005 02:50:41 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 29 Apr 2005 02:50:42 -0700
X-Trace: forums-1-dub 1114768242 10.22.108.75 (29 Apr 2005 02:50:42 -0700)
X-Original-Trace: 29 Apr 2005 02:50:42 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8367
Article PK: 735593

hello

i have one problem - and for a moment no idea to solve this:

i want to access from one tabpage func/events of other tabpages in the same
TAB-Object.
i have definied a general tab-object and a general-tabpage -object
(inherited from PFC-Objects....) - in my tabpage-object i definied a
instance-var from my general-tab-object and registered this in the
constructor-event of the tab-object for every tabpage......

now a want in the tabpage:
iTAB_PARENT.tp_xxxx.of_my_function( parm,parm...) ---> but the problem is
that, the tp_xxxx is a imcompatible property for the iTAB_PARENT
(itab_parent is type of my general-Tab-object)???

how could i start dynamic func./events from one tabpage to another
tabpage???

have anyone a clue for me
many thank's in advance
Michael


"Davy De Permentier" <no_spam Posted on 2005-04-29 10:00:33.0Z
From: "Davy De Permentier" <no_spam@my_e_mail>
Newsgroups: sybase.public.powerbuilder.objects
References: <42720370@forums-2-dub>
Subject: Re: tabpage - accessing functions/events in other tabpages
Lines: 40
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: 194.78.25.49
Message-ID: <427205be@forums-2-dub>
X-Original-Trace: 29 Apr 2005 03:00:30 -0700, 194.78.25.49
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 29 Apr 2005 03:00:30 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 29 Apr 2005 03:00:33 -0700
X-Trace: forums-1-dub 1114768833 10.22.108.75 (29 Apr 2005 03:00:33 -0700)
X-Original-Trace: 29 Apr 2005 03:00:33 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8368
Article PK: 735592

Let your tabpage call a funtion/event on the (parent) tab. Then, since the
tab has a tabpage list, let the tab loop thrue it's tabpages and call
Dynamic function for every tabpage. The tabpage that has that function, will
execute it.

It's like the "messagerouter" system built in PFC.

HTH,
Davy

"M.Erlinger" <michael.erlinger@vienna.at> wrote in message
news:42720370@forums-2-dub...
> hello
>
> i have one problem - and for a moment no idea to solve this:
>
> i want to access from one tabpage func/events of other tabpages in the
same
> TAB-Object.
> i have definied a general tab-object and a general-tabpage -object
> (inherited from PFC-Objects....) - in my tabpage-object i definied a
> instance-var from my general-tab-object and registered this in the
> constructor-event of the tab-object for every tabpage......
>
> now a want in the tabpage:
> iTAB_PARENT.tp_xxxx.of_my_function( parm,parm...) ---> but the problem is
> that, the tp_xxxx is a imcompatible property for the iTAB_PARENT
> (itab_parent is type of my general-Tab-object)???
>
> how could i start dynamic func./events from one tabpage to another
> tabpage???
>
> have anyone a clue for me
> many thank's in advance
> Michael
>
>


M.Erlinger Posted on 2005-04-29 11:05:01.0Z
From: "M.Erlinger" <michael.erlinger@vienna.at>
Newsgroups: sybase.public.powerbuilder.objects
References: <42720370@forums-2-dub> <427205be@forums-2-dub>
Subject: Re: tabpage - accessing functions/events in other tabpages
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.212.169.105
X-Original-NNTP-Posting-Host: 62.212.169.105
Message-ID: <427214dd$1@forums-1-dub>
Date: 29 Apr 2005 04:05:01 -0700
X-Trace: forums-1-dub 1114772701 62.212.169.105 (29 Apr 2005 04:05:01 -0700)
X-Original-Trace: 29 Apr 2005 04:05:01 -0700, 62.212.169.105
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8369
Article PK: 735594

Yes - for events; and how could i handle Object-functions???

thank's
Michael

"Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
news:427205be@forums-2-dub...

> Let your tabpage call a funtion/event on the (parent) tab. Then, since the
> tab has a tabpage list, let the tab loop thrue it's tabpages and call
> Dynamic function for every tabpage. The tabpage that has that function,
> will
> execute it.
>
> It's like the "messagerouter" system built in PFC.
>
> HTH,
> Davy
>
>
> "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
> news:42720370@forums-2-dub...
>> hello
>>
>> i have one problem - and for a moment no idea to solve this:
>>
>> i want to access from one tabpage func/events of other tabpages in the
> same
>> TAB-Object.
>> i have definied a general tab-object and a general-tabpage -object
>> (inherited from PFC-Objects....) - in my tabpage-object i definied a
>> instance-var from my general-tab-object and registered this in the
>> constructor-event of the tab-object for every tabpage......
>>
>> now a want in the tabpage:
>> iTAB_PARENT.tp_xxxx.of_my_function( parm,parm...) ---> but the problem is
>> that, the tp_xxxx is a imcompatible property for the iTAB_PARENT
>> (itab_parent is type of my general-Tab-object)???
>>
>> how could i start dynamic func./events from one tabpage to another
>> tabpage???
>>
>> have anyone a clue for me
>> many thank's in advance
>> Michael
>>
>>
>
>


"Davy De Permentier" <no_spam Posted on 2005-04-29 13:28:04.0Z
From: "Davy De Permentier" <no_spam@my_e_mail>
Newsgroups: sybase.public.powerbuilder.objects
References: <42720370@forums-2-dub> <427205be@forums-2-dub> <427214dd$1@forums-1-dub>
Subject: Re: tabpage - accessing functions/events in other tabpages
Lines: 75
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: 194.78.25.49
Message-ID: <42723661$1@forums-2-dub>
X-Original-Trace: 29 Apr 2005 06:28:01 -0700, 194.78.25.49
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 29 Apr 2005 06:28:02 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 29 Apr 2005 06:28:04 -0700
X-Trace: forums-1-dub 1114781284 10.22.108.75 (29 Apr 2005 06:28:04 -0700)
X-Original-Trace: 29 Apr 2005 06:28:04 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8370
Article PK: 735596

Well, by calling the function dynamically...

For example:
* You have a tab that has 5 tabpages.
* The first tabpage must trigger a function on the second tabpage (let's
call the function f_test), but the tabpages don't know eachothers names.
* Therefore, let the first tabpage call an event (or function) on it's
parent tab (let's call this event ue_test) by using triggerevent (because
you don't know if the tab has the event or not).
* In the tab event ue_test loop thrue all tabpages (use the control[]
property) and call the f_test function dynamically (
This.control[loop_number].Dynamic f_test() ).
* Every tabpage that has this function will execute it.

HTH,
Davy

"M.Erlinger" <michael.erlinger@vienna.at> wrote in message
news:427214dd$1@forums-1-dub...
> Yes - for events; and how could i handle Object-functions???
>
> thank's
> Michael
>
> "Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
> news:427205be@forums-2-dub...
> > Let your tabpage call a funtion/event on the (parent) tab. Then, since
the
> > tab has a tabpage list, let the tab loop thrue it's tabpages and call
> > Dynamic function for every tabpage. The tabpage that has that function,
> > will
> > execute it.
> >
> > It's like the "messagerouter" system built in PFC.
> >
> > HTH,
> > Davy
> >
> >
> > "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
> > news:42720370@forums-2-dub...
> >> hello
> >>
> >> i have one problem - and for a moment no idea to solve this:
> >>
> >> i want to access from one tabpage func/events of other tabpages in the
> > same
> >> TAB-Object.
> >> i have definied a general tab-object and a general-tabpage -object
> >> (inherited from PFC-Objects....) - in my tabpage-object i definied a
> >> instance-var from my general-tab-object and registered this in the
> >> constructor-event of the tab-object for every tabpage......
> >>
> >> now a want in the tabpage:
> >> iTAB_PARENT.tp_xxxx.of_my_function( parm,parm...) ---> but the problem
is
> >> that, the tp_xxxx is a imcompatible property for the iTAB_PARENT
> >> (itab_parent is type of my general-Tab-object)???
> >>
> >> how could i start dynamic func./events from one tabpage to another
> >> tabpage???
> >>
> >> have anyone a clue for me
> >> many thank's in advance
> >> Michael
> >>
> >>
> >
> >
>
>


M.Erlinger Posted on 2005-04-29 14:42:03.0Z
From: "M.Erlinger" <michael.erlinger@vienna.at>
Newsgroups: sybase.public.powerbuilder.objects
References: <42720370@forums-2-dub> <427205be@forums-2-dub> <427214dd$1@forums-1-dub> <42723661$1@forums-2-dub>
Subject: Re: tabpage - accessing functions/events in other tabpages
Lines: 124
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.212.169.105
X-Original-NNTP-Posting-Host: 62.212.169.105
Message-ID: <427247bb@forums-1-dub>
Date: 29 Apr 2005 07:42:03 -0700
X-Trace: forums-1-dub 1114785723 62.212.169.105 (29 Apr 2005 07:42:03 -0700)
X-Original-Trace: 29 Apr 2005 07:42:03 -0700, 62.212.169.105
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8371
Article PK: 735595

hello Davy
thank's for your explanation, but it doesn't work - here my code-example:
****************************************************************************
this code is in an EVENT on the TAB-Object: ue_call_function( string
as_func_name )
****************************************************************************
Long ll_UpB
Long ll_Index

ll_UpB = UpperBound(This.Control[]);

try
CHOOSE CASE lower( as_Function_name )
CASE 'spgr_neu'
FOR ll_Index = 1 TO ll_UpB
This.Control[ll_index].Dynamic of_edit_spermiogramm( 0 );
NEXT
CASE 'xxxx'
FOR ll_Index = 1 TO ll_UpB
This.Control[ll_index].Dynamic of_xxxx(0); NEXT

CASE ELSE
return NO_ACTION;

END CHOOSE

CATCH ( Throwable MyError )
return FAILURE;
END TRY

return SUCCESS;
*******

if i tested it without TRY/CATCH - i get alway a runtime-error, because the
function of_edit_spermio..() is on the 3rd tabpage - and the application
terminated on the first tabpage.
but with TRY/CATCH - i don't get an error-message, but it do not work better
than before.

maybe you see a mistake in this code example.

thank's
Michael


"Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
news:42723661$1@forums-2-dub...

> Well, by calling the function dynamically...
>
> For example:
> * You have a tab that has 5 tabpages.
> * The first tabpage must trigger a function on the second tabpage (let's
> call the function f_test), but the tabpages don't know eachothers names.
> * Therefore, let the first tabpage call an event (or function) on it's
> parent tab (let's call this event ue_test) by using triggerevent (because
> you don't know if the tab has the event or not).
> * In the tab event ue_test loop thrue all tabpages (use the control[]
> property) and call the f_test function dynamically (
> This.control[loop_number].Dynamic f_test() ).
> * Every tabpage that has this function will execute it.
>
> HTH,
> Davy
>
>
>
> "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
> news:427214dd$1@forums-1-dub...
>> Yes - for events; and how could i handle Object-functions???
>>
>> thank's
>> Michael
>>
>> "Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
>> news:427205be@forums-2-dub...
>> > Let your tabpage call a funtion/event on the (parent) tab. Then, since
> the
>> > tab has a tabpage list, let the tab loop thrue it's tabpages and call
>> > Dynamic function for every tabpage. The tabpage that has that function,
>> > will
>> > execute it.
>> >
>> > It's like the "messagerouter" system built in PFC.
>> >
>> > HTH,
>> > Davy
>> >
>> >
>> > "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
>> > news:42720370@forums-2-dub...
>> >> hello
>> >>
>> >> i have one problem - and for a moment no idea to solve this:
>> >>
>> >> i want to access from one tabpage func/events of other tabpages in the
>> > same
>> >> TAB-Object.
>> >> i have definied a general tab-object and a general-tabpage -object
>> >> (inherited from PFC-Objects....) - in my tabpage-object i definied a
>> >> instance-var from my general-tab-object and registered this in the
>> >> constructor-event of the tab-object for every tabpage......
>> >>
>> >> now a want in the tabpage:
>> >> iTAB_PARENT.tp_xxxx.of_my_function( parm,parm...) ---> but the problem
> is
>> >> that, the tp_xxxx is a imcompatible property for the iTAB_PARENT
>> >> (itab_parent is type of my general-Tab-object)???
>> >>
>> >> how could i start dynamic func./events from one tabpage to another
>> >> tabpage???
>> >>
>> >> have anyone a clue for me
>> >> many thank's in advance
>> >> Michael
>> >>
>> >>
>> >
>> >
>>
>>
>
>


"Davy De Permentier" <no_spam Posted on 2005-05-02 07:38:35.0Z
From: "Davy De Permentier" <no_spam@my_e_mail>
Newsgroups: sybase.public.powerbuilder.objects
References: <42720370@forums-2-dub> <427205be@forums-2-dub> <427214dd$1@forums-1-dub> <42723661$1@forums-2-dub> <427247bb@forums-1-dub>
Subject: Re: tabpage - accessing functions/events in other tabpages
Lines: 154
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: 194.78.25.49
X-Original-NNTP-Posting-Host: 194.78.25.49
Message-ID: <4275d8fb$1@forums-1-dub>
Date: 2 May 2005 00:38:35 -0700
X-Trace: forums-1-dub 1115019515 194.78.25.49 (2 May 2005 00:38:35 -0700)
X-Original-Trace: 2 May 2005 00:38:35 -0700, 194.78.25.49
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8374
Article PK: 735599

Oops, my mistake! Must have been sleeping last friday!

The dynamic function call is used when the function you're trying to call
isn't there at design time, but will be there at runtime (when working with
type casting for example). So it's normal you crash on the first tabpage,
because the function isn't there at runtime...

So work with "TriggerEvent" to call your function:
Have your tabpage call an event on the tab. Have that tab loop thrue its
tabpages and call an event on these tabpages and call the function in that
event.

Sorry for my mistake!

HTH,
Davy

"M.Erlinger" <michael.erlinger@vienna.at> wrote in message
news:427247bb@forums-1-dub...
> hello Davy
> thank's for your explanation, but it doesn't work - here my code-example:
>
****************************************************************************
> this code is in an EVENT on the TAB-Object: ue_call_function( string
> as_func_name )
>
****************************************************************************
> Long ll_UpB
> Long ll_Index
>
> ll_UpB = UpperBound(This.Control[]);
>
> try
> CHOOSE CASE lower( as_Function_name )
> CASE 'spgr_neu'
> FOR ll_Index = 1 TO ll_UpB
> This.Control[ll_index].Dynamic of_edit_spermiogramm( 0 );
> NEXT
> CASE 'xxxx'
> FOR ll_Index = 1 TO ll_UpB
> This.Control[ll_index].Dynamic of_xxxx(0); NEXT
>
> CASE ELSE
> return NO_ACTION;
>
> END CHOOSE
>
> CATCH ( Throwable MyError )
> return FAILURE;
> END TRY
>
> return SUCCESS;
> *******
>
> if i tested it without TRY/CATCH - i get alway a runtime-error, because
the
> function of_edit_spermio..() is on the 3rd tabpage - and the application
> terminated on the first tabpage.
> but with TRY/CATCH - i don't get an error-message, but it do not work
better
> than before.
>
> maybe you see a mistake in this code example.
>
> thank's
> Michael
>
>
> "Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
> news:42723661$1@forums-2-dub...
> > Well, by calling the function dynamically...
> >
> > For example:
> > * You have a tab that has 5 tabpages.
> > * The first tabpage must trigger a function on the second tabpage (let's
> > call the function f_test), but the tabpages don't know eachothers names.
> > * Therefore, let the first tabpage call an event (or function) on it's
> > parent tab (let's call this event ue_test) by using triggerevent
(because
> > you don't know if the tab has the event or not).
> > * In the tab event ue_test loop thrue all tabpages (use the control[]
> > property) and call the f_test function dynamically (
> > This.control[loop_number].Dynamic f_test() ).
> > * Every tabpage that has this function will execute it.
> >
> > HTH,
> > Davy
> >
> >
> >
> > "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
> > news:427214dd$1@forums-1-dub...
> >> Yes - for events; and how could i handle Object-functions???
> >>
> >> thank's
> >> Michael
> >>
> >> "Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
> >> news:427205be@forums-2-dub...
> >> > Let your tabpage call a funtion/event on the (parent) tab. Then,
since
> > the
> >> > tab has a tabpage list, let the tab loop thrue it's tabpages and call
> >> > Dynamic function for every tabpage. The tabpage that has that
function,
> >> > will
> >> > execute it.
> >> >
> >> > It's like the "messagerouter" system built in PFC.
> >> >
> >> > HTH,
> >> > Davy
> >> >
> >> >
> >> > "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
> >> > news:42720370@forums-2-dub...
> >> >> hello
> >> >>
> >> >> i have one problem - and for a moment no idea to solve this:
> >> >>
> >> >> i want to access from one tabpage func/events of other tabpages in
the
> >> > same
> >> >> TAB-Object.
> >> >> i have definied a general tab-object and a general-tabpage -object
> >> >> (inherited from PFC-Objects....) - in my tabpage-object i definied a
> >> >> instance-var from my general-tab-object and registered this in the
> >> >> constructor-event of the tab-object for every tabpage......
> >> >>
> >> >> now a want in the tabpage:
> >> >> iTAB_PARENT.tp_xxxx.of_my_function( parm,parm...) ---> but the
problem
> > is
> >> >> that, the tp_xxxx is a imcompatible property for the iTAB_PARENT
> >> >> (itab_parent is type of my general-Tab-object)???
> >> >>
> >> >> how could i start dynamic func./events from one tabpage to another
> >> >> tabpage???
> >> >>
> >> >> have anyone a clue for me
> >> >> many thank's in advance
> >> >> Michael
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>


M.Erlinger Posted on 2005-05-02 08:11:49.0Z
From: "M.Erlinger" <michael.erlinger@vienna.at>
Newsgroups: sybase.public.powerbuilder.objects
References: <42720370@forums-2-dub> <427205be@forums-2-dub> <427214dd$1@forums-1-dub> <42723661$1@forums-2-dub> <427247bb@forums-1-dub> <4275d8fb$1@forums-1-dub>
Subject: Re: tabpage - accessing functions/events in other tabpages
Lines: 169
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 62.212.169.105
Message-ID: <4275e0c0$1@forums-2-dub>
X-Original-Trace: 2 May 2005 01:11:44 -0700, 62.212.169.105
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 May 2005 01:11:46 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 May 2005 01:11:49 -0700
X-Trace: forums-1-dub 1115021509 10.22.108.75 (2 May 2005 01:11:49 -0700)
X-Original-Trace: 2 May 2005 01:11:49 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8375
Article PK: 735598

o.k. davy - thank's for helping!!!!!!!!!!!!!!!!!!!!!!!!!!

Regards
Michael

"Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
news:4275d8fb$1@forums-1-dub...

> Oops, my mistake! Must have been sleeping last friday!
>
> The dynamic function call is used when the function you're trying to call
> isn't there at design time, but will be there at runtime (when working
> with
> type casting for example). So it's normal you crash on the first tabpage,
> because the function isn't there at runtime...
>
> So work with "TriggerEvent" to call your function:
> Have your tabpage call an event on the tab. Have that tab loop thrue its
> tabpages and call an event on these tabpages and call the function in that
> event.
>
> Sorry for my mistake!
>
> HTH,
> Davy
>
> "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
> news:427247bb@forums-1-dub...
>> hello Davy
>> thank's for your explanation, but it doesn't work - here my
>> code-example:
>>
> ****************************************************************************
>> this code is in an EVENT on the TAB-Object: ue_call_function( string
>> as_func_name )
>>
> ****************************************************************************
>> Long ll_UpB
>> Long ll_Index
>>
>> ll_UpB = UpperBound(This.Control[]);
>>
>> try
>> CHOOSE CASE lower( as_Function_name )
>> CASE 'spgr_neu'
>> FOR ll_Index = 1 TO ll_UpB
>> This.Control[ll_index].Dynamic of_edit_spermiogramm( 0 );
>> NEXT
>> CASE 'xxxx'
>> FOR ll_Index = 1 TO ll_UpB
>> This.Control[ll_index].Dynamic of_xxxx(0); NEXT
>>
>> CASE ELSE
>> return NO_ACTION;
>>
>> END CHOOSE
>>
>> CATCH ( Throwable MyError )
>> return FAILURE;
>> END TRY
>>
>> return SUCCESS;
>> *******
>>
>> if i tested it without TRY/CATCH - i get alway a runtime-error, because
> the
>> function of_edit_spermio..() is on the 3rd tabpage - and the application
>> terminated on the first tabpage.
>> but with TRY/CATCH - i don't get an error-message, but it do not work
> better
>> than before.
>>
>> maybe you see a mistake in this code example.
>>
>> thank's
>> Michael
>>
>>
>> "Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
>> news:42723661$1@forums-2-dub...
>> > Well, by calling the function dynamically...
>> >
>> > For example:
>> > * You have a tab that has 5 tabpages.
>> > * The first tabpage must trigger a function on the second tabpage
>> > (let's
>> > call the function f_test), but the tabpages don't know eachothers
>> > names.
>> > * Therefore, let the first tabpage call an event (or function) on it's
>> > parent tab (let's call this event ue_test) by using triggerevent
> (because
>> > you don't know if the tab has the event or not).
>> > * In the tab event ue_test loop thrue all tabpages (use the control[]
>> > property) and call the f_test function dynamically (
>> > This.control[loop_number].Dynamic f_test() ).
>> > * Every tabpage that has this function will execute it.
>> >
>> > HTH,
>> > Davy
>> >
>> >
>> >
>> > "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
>> > news:427214dd$1@forums-1-dub...
>> >> Yes - for events; and how could i handle Object-functions???
>> >>
>> >> thank's
>> >> Michael
>> >>
>> >> "Davy De Permentier" <no_spam@my_e_mail> schrieb im Newsbeitrag
>> >> news:427205be@forums-2-dub...
>> >> > Let your tabpage call a funtion/event on the (parent) tab. Then,
> since
>> > the
>> >> > tab has a tabpage list, let the tab loop thrue it's tabpages and
>> >> > call
>> >> > Dynamic function for every tabpage. The tabpage that has that
> function,
>> >> > will
>> >> > execute it.
>> >> >
>> >> > It's like the "messagerouter" system built in PFC.
>> >> >
>> >> > HTH,
>> >> > Davy
>> >> >
>> >> >
>> >> > "M.Erlinger" <michael.erlinger@vienna.at> wrote in message
>> >> > news:42720370@forums-2-dub...
>> >> >> hello
>> >> >>
>> >> >> i have one problem - and for a moment no idea to solve this:
>> >> >>
>> >> >> i want to access from one tabpage func/events of other tabpages in
> the
>> >> > same
>> >> >> TAB-Object.
>> >> >> i have definied a general tab-object and a general-tabpage -object
>> >> >> (inherited from PFC-Objects....) - in my tabpage-object i definied
>> >> >> a
>> >> >> instance-var from my general-tab-object and registered this in the
>> >> >> constructor-event of the tab-object for every tabpage......
>> >> >>
>> >> >> now a want in the tabpage:
>> >> >> iTAB_PARENT.tp_xxxx.of_my_function( parm,parm...) ---> but the
> problem
>> > is
>> >> >> that, the tp_xxxx is a imcompatible property for the iTAB_PARENT
>> >> >> (itab_parent is type of my general-Tab-object)???
>> >> >>
>> >> >> how could i start dynamic func./events from one tabpage to another
>> >> >> tabpage???
>> >> >>
>> >> >> have anyone a clue for me
>> >> >> many thank's in advance
>> >> >> Michael
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>