Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pb with projecthook
Message
De
23/10/2001 11:57:22
 
 
À
23/10/2001 11:43:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00572091
Message ID:
00572097
Vues:
30
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform