Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Determine Number Of Lines Of Code
Message
De
18/01/1999 19:58:21
 
 
À
18/01/1999 16:29:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00177330
Message ID:
00177425
Vues:
34
>However, if you really need this, you can open every form and class in the class browser and save it as text. You'll also need to check you .MPR and .PRG files and save all your views/queries as QPR files so you can count them too. However, calculating lines of code to produce a report is more problematic.

To get the lines of code from a file: open the file with fopen(), get all content with fget() and use occurs(content, chr(13)) to count the number of lines. Loop through all program files, sum the line count, etc.

It's not so complicate... but the result is meaningless. :))

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform