Re: Subclassed Methods Not Getting Executed

Author: Ted Roche

Posted: 2016-03-07 at 12:42:16

On Mon, Mar 7, 2016 at 1:14 PM, Gene Wirchenko <genew@telus.net> wrote:

>

> The compiler does not throw an error if you have two methods of the

> same name in a class. (It should.) Whenever I searched for the method, I

> found the first one. When there are two methods of the same name, VFP

> executes the second.

>

When there are two methods (functions) of the same name in a program

or procedure file, the last is executed, too. That may or may not be a

bug, or a neat feature you can exploit using conditional INCLUDES. I

lean towards the former.

--

Ted Roche

Ted Roche & Associates, LLC

http://www.tedroche.com

_______________________________________________

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/CACW6n4t05RSRT3ykBW-_DVq63XF0HVHQBcJux+dRPjf_PjkChg@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