Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pb with projecthook
Message
From
23/10/2001 11:57:22
 
 
To
23/10/2001 11:43:08
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00572091
Message ID:
00572097
Views:
31
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform