>You need to find corresponding File object in Files collection of Project object.
>The code may look so:
>
>FOR EACH oFile IN oProject.Files
> IF oFile.Name == cName THEN
> oFile.Exclude = .F.
> EXIT
> ENDIF
>ENDFOR
>
>
>Where oProject is a Project object.
>
>Currenctly I don't know how to access corresponding Project object from ProjectHook object. You can use Application.ActiveProject property but this may do not work if you use BUILD EXE command. Otherwise you need to search Application.Projects collection to find a Project object with corresponding name. Tell me if you know easy way to access Project object from it's ProjectHook.
Well, when I add files from within the project hook I use:
_vfp.activeproject.files.add(cFilename)
Randy