Logo

Hacker’s Guide to Visual FoxPro
An irreverent look at how Visual FoxPro really works. Tells you the inside scoop on every command, function, property, event and method of Visual FoxPro.

Close

This method of the Project object (we just love to say “Project object”) closes the Project Manager.

Usage

prjProject.Close()

The COM Project object, added in VFP 6, provides programmatic control over projects and the Project Manager. The Close method makes it possible to shut down the Project Manager without resorting to KEYBOARDing the appropriate keystrokes.

When a project that has an associated project hook is closed, whether interactively or using the Close method, the Destroy event of the project hook fires.

Example

_VFP.ActiveProject.Close()

See Also

Destroy, Project, ProjectHook