RE: (subclassing) Modifying an existing functionality -Reply -Reply

Author: Michael Babcock, mbabcock@kepro.org

Posted: 1999-10-08 at 13:52:24

Paul,

That's what I kind of thought but ruled that out after reading Ed's reply. But then again, I'm not well today (sick) so I'm somewhat in the fog. I need

the weekend <g>.

So can I do this on the fly programmatically, or am I limited to having to use

the GUI development? I would think I should be able to do it in code, but the

DEFINE CLASS helpdoc makes me wonder how I alter an existing object's method. I'm not adding an object, because it's already there. So how I address this? --Mike

>>> "pmcnett@pcs-blc.com" 10/08/99 01:15pm >>>

On 8 Oct 99, at 12:28, Michael Babcock wrote:

> It's from a vcx using CREATEOBJECT(), not an .scx subclassed form. (Or do

> I misunderstand you?) --Mike

Mike, .scx's are not classes, but forms that are either subclassed from a vcx

library, or from the VFP base classes.

The fact that you have a your form in a vcx means that all you have to do is

create a new class based on frmdates, put your overriding code in the

appropriate places, and then, instead of issuing CREATEOBJECT("frmdates"),

issue CREATEOBJECT("frmnewdates").

Paul McNett

Computer Consultant / Custom Application Developer

Professional Computer Solutions

Hollister, CA 95023

mailto:pmcnett@pcs-blc.com

********************************

Michael Babcock

KePRO, Inc.

Tel: 717-564-8288

Fax: 717-564-4188

Internet Address: mbabcock@kepro.org

Home Page: http://www.kepro.org

********************************

©1999 Michael Babcock, mbabcock@kepro.org