Remove Method (File Object)

Removes a file from its files collection and project.

Object.Remove( )

Remarks

Applies To: File Object

The Remove method for file objects returns true (.T.) if the file is successfully removed from the project; otherwise false (.F.) is returned. Note that a warning isn't displayed when you use the Remove method to remove files from a project, including files that are under source code control.

The QueryRemoveFile event occurs before the file is removed from its Files collection and project. If the QueryRemoveFile event returns false (.F.), the file isn't removed from its Files collection and project and the Remove method returns false (.F.). If the QueryRemoveFile method returns true (.T.), the file is removed from its Files collection and project and the Remove method returns true (.T.).

See Also

Reference

Add Method (File Object)

Modify Method

QueryRemoveFile Event

Other Resources

Methods (Visual FoxPro)