Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacing Class in Abstract Factory
Message
De
16/11/2004 15:23:42
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Replacing Class in Abstract Factory
Versions des environnements
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Divers
Thread ID:
00961898
Message ID:
00961898
Vues:
42
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform