Information générale
Catégorie:
Gestionnaire de projet
Versions des environnements
Network:
Windows 2003 Server
>That would work, but I'm looking for a more automated way. I doing a project review, and this project has 500+ forms and I was hoping not to have to do a search on each form.
>
One way or another, you'll to search. But you can write your own search code, taking advantage of the project object and its files collection. Something like:
Open project
Loop through oProject.Files and build a list of forms
Loop through all files and, in each, check the code (full content for PRG, Code memo for *.??X files) for references to each of the forms. To speed things up, have a logical flag in your list of forms and, as soon as you find a reference to it, flag it and don't search for it any more.
That said, if what you're trying to do is clean out debris, you could create a new project, add the main program and then Build project to pull in everything that is referenced. It's then easy to write code to compare the two projects and see what's not there. In fact, I have some code along these lines in the July FPA.
Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement