Search Tools Links Login

Updated: Get Code Stats (number of lines of code)


This is an update to my "Count the Number of Lines in your Code" submission back in May. It has may updates as you can tell from the screen shot.
There is a listbox where you can select any file in a project or directory and get the number of lines of code. Also added an option to check all subdirectories when you are doing a directory search. You can now specify the typs of files you want to query and get a count of the number of functions in your project.
ORIGINAL: I was recently at an interview where I was asked how many lines of code I have writen. The question kind of caught me off guard -- I had no idea!! Ya, probably in the tens of thousands, but no real clue. That sparked the idea to make this application. With this app, you can specify a directory, a single file, or a VB project file, and it will analyze the data and tell you how many lines of code are in the project. This is the first beta release of the code, so please leave feedback if you encounter any bugs, or if you have any suggestions that I should add to my next version. Just select the type of code you want to analyze from the dropdown box and select the location of the file. The application will return to you: 1. The number of forms in the project 2. The number of modules in the project 3. The number of class modules in the project 4. The number of Blank Lines in the project 5. The number of Commented Lines in the project 6. The number of actual coded lines in the project 7. The total number of lines in the project This is still a work in progress. I'm thinkin of adding as an output the number of procedures in the project. Maybe even break the numbers down per file. Please leave feedback and let me know what you think. If you like the code, please vote for it.

Original Author: unknown

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 104 times

Categories

Visual Basic 6

Attachments

Updated__G337261172001.zip
Posted: 9/3/2020 3:45:00 PM
Size: 20,927 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.