>>Hi everybody,
>>
>>Is there a utility available for adding multiple entities in a project. Suppose, I want to include 50 prgs in a project, which are referenced only indirectly. It would be a tedious process to add them one by one...
>>
>>Could you please help me here?
>>
>>Thanks in advance.
>
>Nadya,
>I don't know of anything pre-written but you could do this in two ways.
>
>1. Add 50 lines of code to your main program with the following lines:
>
>external procedure myprg1
>:
>external procedure myprg50
>
>Then rebuild your project.
>
>2. Create a project hook and use the Files collection of the Projetc object to add them.
>With _VFP.ActiveProject.Files
> .Add('MyPrg1')
> :
> .Add('MyPrg50')
>Endwith
>HTH.
Thanks, Larry & James. I'm writting a simple program using ProjectHook right now.
Thanks.
If it's not broken, fix it until it is.
My Blog