共用方式為


QueryModifyFile Event

Occurs just before a file is modified in a project.

PROCEDURE Object.QueryModifyFile
LPARAMETERS oFile, cClassName

Parameters

  • oFile
    Contains an object reference to the file to modify. oFile is passed to the QueryModifyFile event after the Modify method is executed, you choose Modify in the Project Manager, or you choose Modify File from the Project menu.
  • cClassName
    Contains the name of the class to modify if the file is a .vcx visual class library.

Remarks

Include NODEFAULT in the QueryModifyFile event to prevent a file from being modified in the project.

See Also

Modify Method | QueryAddFile Event | QueryRemoveFile Event | QueryRunFile Event | QueryNewFile Event

Applies To: ProjectHook Object