Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help needed with ProjectHook Object
Message
 
To
29/11/2001 16:24:54
Bill Emery
MedScribe Information Systems
Sylvania, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00587733
Message ID:
00587746
Views:
29
>I’m using VFP 6 SP 5 on Windows 98 SE. I’ve got a project file that I need to add 200 plus program files to which are referenced indirectly. Rather than use the point and click interface, I thought to add these file programmatically. Now comes the learning and growth experience.
>
>I RTFM up to and through “The ProjectHook Object” and have tried to assign a project class in both Tools, Options, Projects and, with the project open, Project Info, Project Class. No luck, and I don’t understand how to create the class library that I need. Could someone please point me in the right direction and/or maybe provide a basic example of adding program files to the project? All the MSDN documentation I’m reading seems to be using circular logic.
>
>Thank you very much.

Bill,

You can use the following line of code to add to the currently opened project. Just change main.prg to whatever program you want to add including the path -
_vfp.ActiveProject.Files.Add('c:\dev\main.prg')
HTH

Dan
Previous
Reply
Map
View

Click here to load this message in the networking platform