Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get project statistics?
Message
 
À
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:
01235683
Vues:
20
Tamar

Sadly the source code was on the conference CD

Thanks for your help

Colin


>>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
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform