>Hello,
>
>I wish to know the repertory of one project to the opening.
> I use the method projecthook.init().
>in the method I have:
>messagebox(this.parent.homedir)
>dodefault()
>
>the opening of the project has I obtain the message this.parent cannot be evaluates
>
>in the debuger when I visualize _ vfp.projects(x).projecthook.parent
>I have (the expression could not be evaluated), X being the number of the project
>in question.
>
>where is the error?
The Parent property of a Project hook does not reference the project. Use _VFP.ActiveProject instead, it should always work when hook code is running.
Erik Moore
Clientelligence