Hey Martin,
You may have already solved this problem, but if you haven't, take a look at Valhalla. It's a project mgt tool I wrote that does what your looking to do as well as quite a bit more. You can find it in the downloads section or you can go to
www.valhallatech.net to download it. It's free!
Pablo
>Hello,
>
>I often work with multiple projects in my VFP 7.0 IDE. These projects are in different directories which makes it nessery to CD to another directory often. I would like to have a projecthook class to switch directories om the activation of a project. So I build one with this code in the activate:
>
>DoDefault()
>If Type('_VFP.ActiveProject') == 'O'
> CD (_VFP.ActiveProject.HomeDir)
>EndIf
>
>Next I atteched this projecthook to four projects I have currently open. Now it seems that only one project respondes to the activate in the projecthook. The other tree projects do't run any code on activation. I put a messagebox in my projecthook to see if the activate was fired, but ik these three projects the activate was never fired.
>
>Has anyone an idea how to solve this?
>
>TIA,
>
>Martin