QueryAddFile Event

Occurs just before a file is added to a project.

PROCEDURE Object.QueryAddFile
LPARAMETERS cFileName

Parameters

  • cFileName
    Contains the name of the file to add to the project. cFileName is passed to the QueryAddFile event after the Add method is executed, you choose Add in the Project Manager, or you choose Add File from the Project menu.

Remarks

Applies To: ProjectHook Object

Include NODEFAULT in the QueryAddFile event to prevent a file from being added to the project.

See Also

Reference

Add Method (File Object)

QueryModifyFile Event

QueryRemoveFile Event

QueryRunFile Event

QueryNewFile Event

NODEFAULT Command

Other Resources

Events (Visual FoxPro)