Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if forms in project are ever called
Message
De
05/09/2007 13:09:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01252418
Message ID:
01252501
Vues:
15
>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
Fil
Voir

Click here to load this message in the networking platform