Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Projects, hooks and such.
Message
De
08/11/2001 11:54:56
 
 
À
07/11/2001 16:09:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00578740
Message ID:
00579152
Vues:
34
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
Fil
Voir

Click here to load this message in the networking platform