AddToSCC

CleanUp

This project method corresponds to the Clean Up Project option on the Project menu, but goes it one better. It packs the project table and, optionally, removes compiled code to force it to be recompiled.

Usage

prjProject.CleanUp( [ lDeleteObjectCode ] )

Parameter

Value

Meaning

lDeleteObjectCode

.F. or omitted

Leave the compiled code in the project alone.

.T.

Remove the compiled code from the Object memo field.


Over time, as you work on a project, lots of debris accumulates in the project file, including records marked as deleted because components were removed and memo fields bloating as code is recompiled and so forth. CleanUp throws away all that debris, leaving you with a nice, clean, smaller project file. This effect is the same as if you were to use the PJX file as a table and issue the command PACK.

However, the method has capabilities beyond what you can do with a mere PACK. The optional parameter lets you decide whether to clean out the Object field of the project as well. The Object field contains compiled code for programs, menus and queries. If you throw it out, the source gets recompiled the next time you build the project.

Example

_VFP.ActiveProject.CleanUp()

See Also

Pack, Project


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net