Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can ProjectHook determine Project's Name ?
Message
From
06/01/2005 23:13:22
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00974941
Message ID:
00974952
Views:
24
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform