Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Determine Number Of Lines Of Code
Message
From
18/01/1999 19:58:21
 
 
To
18/01/1999 16:29:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00177330
Message ID:
00177425
Views:
36
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform