QueryAddFile, QueryModifyFile, QueryNewFile, QueryRemoveFile, QueryRunFile
These events are among the things that make project hooks so powerful. They fire just before the indicated action occurs and give you a chance to meddle.
Usage |
phkProjectHook.QueryAddFile( cFileName ) phkProjectHook.QueryModifyFile( filFile [, cClassName ] ) phkProjectHook.QueryNewFile( cFileType ) phkProjectHook.QueryRemoveFile( filFile [, cClassName | lDeleteIt ] ) phkProjectHook.QueryRunFile( filFile ) |
Parameter |
Value |
Meaning |
cFileName |
Character |
The name of the file being added, including the path. |
filFile |
File Object |
An object reference to the file affected. |
cClassName |
Character |
The class to be modified or removed from the class library. Passed only if filFile is a class library and, for QueryRemoveFile, only if an individual class is selected for removal, not the whole class library. |
cFileType |
Character |
A single character indicating the type of file being created. See Help for the list. |
lDeleteIt |
Logical |
Indicates whether the file is also being deleted from the disk. |
Example |
* Log additions to a project. * Assume that the log table is open, perhaps opened * by the project hook's Init event. PROCEDURE QueryAddFile LPARAMETERS cFileName INSERT INTO Log VALUES ("Add",cFileName,DATETIME()) RETURN |
See Also |
Add, AfterBuild, BeforeBuild, Modify, ProjectHook, Remove, Run Method |