how to force the codes in the parent class to be executed
even there's code in the same method or event ?
(Parent class's code will be ignore if there's user code in the same
method/event)

i know that by issuing dodefault() will archive this.
but this function have be put in every form in the method i want.

My goal:
the code in the parent class will automatically executed
after the users code in the method or event i choose.

Thanks!

Re: Force execution of parent code by Mike

Mike
Wed Jun 29 06:46:49 CDT 2005

DODEFAULT() will execute the parent method.


"Durby vend" <someone@microsoft.com> wrote in message
news:etADdLHfFHA.1148@TK2MSFTNGP12.phx.gbl...
> how to force the codes in the parent class to be executed
> even there's code in the same method or event ?
> (Parent class's code will be ignore if there's user code in the same
> method/event)
>
> i know that by issuing dodefault() will archive this.
> but this function have be put in every form in the method i want.
>
> My goal:
> the code in the parent class will automatically executed
> after the users code in the method or event i choose.
>
> Thanks!
>
>
>



Re: Force execution of parent code by man-wai

man-wai
Wed Jun 29 08:12:57 CDT 2005

Mike Gagnon wrote:
> DODEFAULT() will execute the parent method.

To specify the exact parent, you could use parent_class_name::method()
(if I remmeber correctly).

--
.~. Might, Courage, Vision. http://www.linux-sxs.org
/ v \
/( _ )\ Linux 2.4.30
^ ^ 9:12pm up 47 days 9:21 load average: 3.89 2.86 1.75

Re: Force execution of parent code by man-wai

man-wai
Wed Jun 29 08:50:40 CDT 2005

man-wai chang wrote:
> Mike Gagnon wrote:
>> DODEFAULT() will execute the parent method.
>
> To specify the exact parent, you could use parent_class_name::method()
> (if I remmeber correctly).
>
Yes. "::" is a "scope resolution operator".

--
.~. Might, Courage, Vision. http://www.linux-sxs.org
/ v \
/( _ )\ Linux 2.4.30
^ ^ 9:50pm up 47 days 9:59 load average: 0.04 0.09 0.50

Re: Force execution of parent code by Fred

Fred
Wed Jun 29 10:04:00 CDT 2005

Yes, you'll need to put this in all of your code. How else can it tell
exactly *when* you want the original code executed? You may want it to
occur before your code, after your code, in the middle of your code. or not
at all. It's not a mind reader so you have to explicity tell it when.

--
Fred
Microsoft Visual FoxPro MVP


"Durby vend" <someone@microsoft.com> wrote in message
news:etADdLHfFHA.1148@TK2MSFTNGP12.phx.gbl...
> how to force the codes in the parent class to be executed
> even there's code in the same method or event ?
> (Parent class's code will be ignore if there's user code in the same
> method/event)
>
> i know that by issuing dodefault() will archive this.
> but this function have be put in every form in the method i want.
>
> My goal:
> the code in the parent class will automatically executed
> after the users code in the method or event i choose.
>
> Thanks!
>
>
>



Re: Force execution of parent code by swdev2

swdev2
Mon Jul 04 14:24:51 CDT 2005

Heya Durby -
most ppl 'took' the SuperClass Approach and then started to view a
classlibrary as a table, and then do "ONCE" a scan..endscan with a replace
for each object you want to have this behavior .

I have put such beasties in a 'beforebuild' event in a project hook - but
for some ppl thats just toooooooooo much.

how many levels of class / objects do you need to drill through ? usually we
wound up doing something like
if this.parent.something
then dodefault()
endif

but as you've seen recently thats a whole lot o coding

My favorite mess was when ALL things were subclassed and ALL things got the
[then dodefault()] call, and it made debugging an untrivial thing, even for
a point revision white box test.

Have you studied any frameworks this year? I'd kinda sorta suggest you lean
in that direction.

lemme know yer thoughts.
mondo regards [Bill]

--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.dotnetconversions.com
"Durby vend" <someone@microsoft.com> wrote in message
news:etADdLHfFHA.1148@TK2MSFTNGP12.phx.gbl...
> how to force the codes in the parent class to be executed
> even there's code in the same method or event ?
> (Parent class's code will be ignore if there's user code in the same
> method/event)
>
> i know that by issuing dodefault() will archive this.
> but this function have be put in every form in the method i want.
>
> My goal:
> the code in the parent class will automatically executed
> after the users code in the method or event i choose.
>
> Thanks!
>
>
>



Re: Force execution of parent code by Durby

Durby
Mon Jul 04 22:46:06 CDT 2005

hi swdev2,

so you suggest to run a program to scan through all forms and add in
the line "dodefault()" during compile? sounds like a good idea to me..
Thanks!

i have no info on any framework going on at all, what will you recommend
or start with ?

Thanks a lot.


"swdev2" <wsanders@dotnetconversions.bob.com> wrote in message
news:42c99167$1@news.starhub.net.sg...
> Heya Durby -
> most ppl 'took' the SuperClass Approach and then started to view a
> classlibrary as a table, and then do "ONCE" a scan..endscan with a replace
> for each object you want to have this behavior .
>
> I have put such beasties in a 'beforebuild' event in a project hook - but
> for some ppl thats just toooooooooo much.
>
> how many levels of class / objects do you need to drill through ? usually
> we
> wound up doing something like
> if this.parent.something
> then dodefault()
> endif
>
> but as you've seen recently thats a whole lot o coding
>
> My favorite mess was when ALL things were subclassed and ALL things got
> the
> [then dodefault()] call, and it made debugging an untrivial thing, even
> for
> a point revision white box test.
>
> Have you studied any frameworks this year? I'd kinda sorta suggest you
> lean
> in that direction.
>
> lemme know yer thoughts.
> mondo regards [Bill]
>
> --
> ===================
> William Sanders / EFG VFP / mySql / MS-SQL
> www.efgroup.net/vfpwebhosting
> www.dotnetconversions.com
> "Durby vend" <someone@microsoft.com> wrote in message
> news:etADdLHfFHA.1148@TK2MSFTNGP12.phx.gbl...
>> how to force the codes in the parent class to be executed
>> even there's code in the same method or event ?
>> (Parent class's code will be ignore if there's user code in the same
>> method/event)
>>
>> i know that by issuing dodefault() will archive this.
>> but this function have be put in every form in the method i want.
>>
>> My goal:
>> the code in the parent class will automatically executed
>> after the users code in the method or event i choose.
>>
>> Thanks!
>>
>>
>>
>
>