Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing Class in Abstract Factory
Message
From
16/11/2004 15:23:42
June Kendrick
Kendrick Associates, Inc.
New York, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Replacing Class in Abstract Factory
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00961898
Message ID:
00961898
Views:
43
In one app, I've sub-classed the cReportForm class and set up to call it via a tool bar button. The File/Print Report option calls the original cReportForm class by using an AbstractFactory to create a 'ReportForm'. The AbstractFactory uses the CLASSES table in the MMORTALS\COMMON30\LIBS directory. I'd like to have the File/Print Report option call my sub-class instead of the original ReportForm. What's the recommended method?

If I change the entry in the CLASSES table, then all apps that use the framework will call the sub-class, which isn't necessarily what I want. At the moment, it doesn't matter as I've only got the one app, but I might not want that sublcass fo the next one. Should the CLASSES table really be in the DATA directory (or the app base directory) for the app, instead of the MMORTALS LIBS directory?

Thanks,

June
Next
Reply
Map
View

Click here to load this message in the networking platform