Hi Tony.
>I am giving a short presentation on project hooks for a user group and am looking for creative implementations of the project object/project hook features in VFP.
Here are some of the things I do with project hooks:
- In the Init method, CD to the directory for the project (you can also do that in the new Activate event in VFP 7).
- Also in Init of some project hook subclasses, if the project's Files.Count is 0 (ie. it's a new project), automatically add a core set of library files to the project.
- In the BeforeBuild event, I instantiate my application object, read the cVersion property, and set the project's VersionNumber property to that value. This saves having to manually synchronize the two values. I also update other Version* properties from a configuration table so I don't have to remember to set these properties at all.
- Also in BeforeBuild, open any FRX and LBX files as tables and blank the TAG, TAG2, and EXPR fields so printer-dependent information is removed.
Doug
Précédent
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