Re: Subclassed Methods Not Getting Executed

Author: Ted Roche

Posted: 2016-03-03 at 08:06:27

I'm sorry, this is Visual FoxPro and I *assumed* through lack of

evidence to the contrary, that you were using *Visual* classes. It was

a poor assumption, since I have followed your postings here for a

decade or two, and now I recall you're a PRG-class guy, but keeping

track of how everyone here chooses to code, which frameworks they use

(or insist they don't need) is a bit tiresome.

I could ask nineteen more questions, but...

The fact that you included "subclassed" in your title indicates you

feel that is important. I should be able to read between the lines and

interpret why you emphasize that.

Visual classes was my first guess.

My second would be that "the code that isn't running" is inside of a

container, and it was the entire *container* that was subclassed and

not just the object whose code isn't running. Drew Speedie wrote up an

excellent article nearly 20 years ago on the problems with subclassing

containers, which Steven Black references here:

http://stevenblack.com/articles/managing-vfp-class-libraries/

I'm not having luck finding the original article online. Drew also

included it in the notes in his Visual Maxframe framework, and may

have published it as speaker notes from a conference or two.

If this sounds like it might be applicable, and you can't find the

article, contact me off-list and I'll help you find one.

If not, I've got eighteen more guesses...

On Thu, Mar 3, 2016 at 1:49 AM, Gene Wirchenko <genew@telus.net> wrote:

>

> Ah, no. I have subclassed. The subclass code is not running. It does

> in other forms.

>

It does in other forms when it is subclassed, or the code runs in

other forms, but doesn't run when it is subclassed?

Oh, darn! Now I'm down to seventeen questions!

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CACW6n4t0kZ1n-6EGE3FRSeTh--KsAgWWDZ=V=oAO9g3QiGR14g@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2016 Ted Roche