Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get project statistics?
Message
De
26/06/2007 09:19:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01235559
Message ID:
01235630
Vues:
13
>Hi
>
>I want to produce some stats about a couple of large projects
>
>No of forms
>No of prg
>No of reports
>
>Lines of code
>
>Is there any easy way to do this?

Open the project and use the Project object:
FOR EACH oFile IN This.Files 
   DO CASE 
   CASE oFile.Type = "K"
      nForms = nForms + 1
   CASE oFile.Type = "V"
      nClassLibs = nClassLibs + 1
   ...
ENDFOR
Counting lines of code is a little tougher because of comments, but you can do it. Check out the source code for the paper Software Maintenance at http://www.tedroche.com/papers.php

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform