CPDBF()

Remove

This file method removes things from a project or, more technically, from the Files collection of a project.

Usage

filFile.Remove( [ lDeleteIt ] )
Remove is part of the programmatic control of projects introduced in VFP 6. It lets you take files out of a project and, optionally, delete them as well.

Like the other project methods, Remove interacts with the project hook methods that let you insert custom code to occur around project actions. In this case, QueryRemoveFile is executed before the actual removal and can abort the process.

Example

* Remove the first file from the active project without deleting _VFP.ActiveProject.Files[1].Remove()

See Also

Add, File, Files, Modify, Project, QueryRemoveFile


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