You would have the same problem when you use EVNTHANDLER() to bind to a COM events. You don't have reference to the COM object from its events unless you provide it some way.
>
>I was a little surprised that I had to use _vfp.activeproject.files.add() to make this work from within the beforeBuild event. I would have thought there would have been a way to get a reference to the project from within the method. It works though.
>
--sb--