Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Projects, hooks and such.
Message
From
08/11/2001 11:54:56
 
 
To
07/11/2001 16:09:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00578740
Message ID:
00579152
Views:
33
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform