VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Simplified VB Line Counter (Mark B)

Mark Biddlecom  (2 Submissions)   Complete Applications   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

This program will count the number of lines, characters, etc, of a specified list of files in a given folder (and optionally all of its subfolders). I plan to add more statistical data later, such as a list of the "top ten" files, by number of lines. The line counting method is simple: it counts all lines that contain any non-whitespace characters. It also counts the number of pure comment lines (those that start with a ' and contain no code) and displays that number. There are probably better counting algorithms out there but this project is somewhat tailored to the kind of coding I do. Among other things, this module also demonstrates how to use the Browse For Folder dialog (Windows API--thanks to Dev Ashish) and the FileSystemObject to recursively search for files. Please vote, as I'm just plain curious :P. --Mark

API Declarations
Two API functions for use in the Browse For Folder dialog. Check modBrowseForFolder.

Rate Simplified VB Line Counter (Mark B) (3(3 Vote))

Download Simplified VB Line Counter (Mark B)

Simplified VB Line Counter (Mark B) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters