Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can ProjectHook determine Project's Name ?
Message
De
06/01/2005 23:13:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00974941
Message ID:
00974952
Vues:
23
>>Is there any way that my Default ProjectHook Class can determine the name of the Project that it's attached to?
>
>Just a guess, did you check Parent property?

Yes, tried Parent. Keeps generating error "Parent is not an object". Not exactly sure what the parent of a ProjectHook would be, but it's not the project itself.

I did figure out a way to get it though.
I created a property in the ProjectHook class "cName".
In ProjectHook.Activate() I set cName = rand(), then cycle through _vfp.projects looking for the project whose ProjectHook.cName = rand().
Gets the job done, but I'd rather find an easier way.
Bill Morris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform