Share via


Running the Project Manager Hooks Sample

The Visual FoxPro Solutions Sample application includes a sample named "Track activities in a project" that demonstrates many of the new Project Manager hooks.

To run the Solutions Sample application

  • Enter the following in the Command window:

    DO (HOME(2) + 'solution\solution')
    

    -or-

  1. From the Program menu, choose Do.
  2. Choose the \Samples\Solution folder.
  3. Double-click Solution.app.

To run the "Track activities in a project" sample

  1. After starting Solution.app, double-click New Features for Visual FoxPro.
  2. Click Track activities in a project and then click the Run Sample button.

The "Track activities in a project" sample allows you to open a project and then manipulate the project in any manner. Any changes you make to the project are stored in a table. When you close the project, you can view the changes you made to the project in a Browse window.

For more information about how the "Track activities in a project" sample works and to take a closer look at the code behind the sample, you can open the form used to create the sample.

To open the "Track activities in a project" form

  1. After starting Solution.app, double-click New Features for Visual FoxPro.
  2. Click Track activities in a project and then click the See Code button.

Acttrack.scx, the form used to create the "Track activities in a project" sample, is opened in the Form designer.

You might also want to take a closer look at the ProjectHook class library, Project_hook.vcx, that is assigned to the project you open in the "Track activities in a project" sample. Most of the code that is executed when project events occur is in the event procedures in this class library. Project_hook.vcx is located in the \Samples\Solution\Tahoe directory.

See Also

Project Object Architecture | Development Productivity Tools | The Project Object Hierarchy