You're welcome. I don't have VFP installed so I can't check, but I _think_ the scope resolution operator (::) is more flexible than DoDefault(), though, because it allows you to call a different method than the one you're in. Such as call MyOriginal::SomeMethod from MyChild:AddRecord.
Not sure though. I never had the need to do this kind of tricks, that's why I never used it this way. > -----Original Message----- > From: [email protected] [mailto:profoxtech- > [email protected]] On Behalf Of MB Software Solutions, LLC > Sent: Monday, July 05, 2010 7:26 PM > To: [email protected] > Subject: Re: Calling parent classes method with same name (for sake of > consistency in interface) > > Grigore Dolghin wrote: > > DoDefault(toRecord, "myView") > > > Awesome. I'd never used DODEFAULT in PRG classes before; only in SCX > methods/events. Of course! Thanks, Grig. > > This also worked, although your approach is better as it's more flexible: > MyOriginal::AddRecord(toRecord,"MyView") > > -- > Mike Babcock, MCP > MB Software Solutions, LLC > President, Chief Software Architect > http://mbsoftwaresolutions.com > http://fabmate.com > http://twitter.com/mbabcock16 > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** 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.

