Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add many files to project
Message
From
24/07/2005 11:00:04
 
 
To
24/07/2005 10:24:59
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Project manager
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01035499
Message ID:
01035506
Views:
19
>Hi all
>I have a project with 70 reports. it is difficult to add these reports one by one to the project.
>Is any way to add these files in another way?
>Thanks

Reza,

This will add all Reports of one directory to the project
You'll have to modify it to suit your needs
local oProject, i, n, aa[1], FileName, obj

modify project Reza nowait
oProject = Application.ActiveProject

n = adir(aa, '*.frx')
for i = 1 to m.n
    FileName = aa[m.i, 1]
    obj = oProject.Files.Add(m.FileName)

    if( isnull(m.obj) )
        error 'Could not add file ' + m.FileName
  
    endif
endfor

=oProject.CleanUp()
=Application.ActiveProject.Close()
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform