Information générale
Catégorie:
Gestionnaire de projet
A Knowledge Base FAQ by Scott Grabo, dated 29/07/99, titled "Why won't my report print to the SET PRINTER TO NAME printer?" addresses clearing Expr, TAG and TAG2 from reports automaticlly when a project is built (maintaing the settings you want).
I've been playing around w/his idea. He states "Create a base project class by subclassing from the VFP Project class". I couldn't figure out how to do exactly that, but came across project hooks.
I created a project hook, added code to the BeforeBuild method that 'scrubs' all reports, and set the Project class for the existing project to be the project hook. it works!
BUT, using that code, I often get the error when building:
File c:\program files\devstudio\vfp\s s\ssclasslib.vcx is in use and cannot be recompiled.
Yes, ssclasslib is where my project definition is.
Questions:
1) is using a project hook the way I should be doing this? is there a way to subclass the VFP Project class?
2) using a project hook, how to get around the error?
TIA
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement