Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Framework subclassing strategies
Message
From
10/10/2001 07:42:06
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
09/10/2001 14:09:43
Paul Williamson
Williamson Enterprises, Inc.
Livingston, Montana, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00563848
Message ID:
00566330
Views:
9
Paul,

>Personally, I subclass the classes to files
><<
>
>Files? Do you mean class libraries?
Yes.
>
>>> beginning with an "R" and place these in a file on the same level

Think of the subclasses as different levels:

Level 1: "C" and "K" classes - These classes are not to be changed without severe provocation. If you change these classes, you must keep track of the changes and reapply them with each new update from Kevin. Alternatively, you can contact Kevin to see if he will incorporate your changes into the framework.

Leval 2: Your "W" classes - These classes are for your changes to be used in all created apps. If your "A" classes are set up correctly, you can make changes to these classes to change behavior for all projects.

Level 3: The application "A" classes. These classes are application specific classes. Changing these classes affect just the application changed.

Between these three levels, you should be able to make all changes necessary.
>
>Level? Do you mean the same directory?

No I mean a directory on the same level as the COMMON30 directory. These classes need to be above the application directory in the directory tree since the will be used in all applications.

>
>>> as the COMMON30 directory (I call it RCOMMON30.
>
>By it, do you mean another sub-directory under the mmortals directory?

Yes
>

>>> I then subclass the "R" classes to "A" classes and have these classlibs in the application directory.
><<
>
>Application directory? Do you mean the project created by the Qstart utility?

Yes

>
>>> If the "A" class already exists,
>
>Why would it already exist?

MereMortals comes with some "A" classlibs already defined. You would need to edit the contained classes and redefine the classes to use your "W" classes so that any changes to the "W" classes would be reflected in your application.

>
>>> I redefine it from the "C" or "K" class to my "R" class. You will also need to add the "RCOMMON" directories to your search path and add the "R" classes to your project.
><<
>
>Won't the Qstart utility add these?

Only if you add the to your Generic project
>
>Thanks!
>
>-paul


HTH

Rex
Previous
Reply
Map
View

Click here to load this message in the networking platform