Condividi tramite


Remove Method

Removes a file from its files collection and project.

Object.Remove( )

Remarks

The Remove method 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

Add Method | Modify Method | QueryRemoveFile Event

Applies To: File Object