VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



VB Project Cleaner

by Franco Gomes (3 Submissions)
Category: Debugging and Error Handling
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (25 Votes)

(Version 1.0.5) This small program is not a VB project analyzer, but a VB project cleaner. The purpose is to search for all declarations, variables, constants and procedures unused on Visual Basic 6 projects. I made this program for my use, because I had necessity to free my projects of the accumulated garbage.
After opened the VB Project, VB Project Cleaner creates a new folder (inside your project folder) named Clean_(and followed by your project FolderĀ“s name), for where the project files, forms, modules and class modules, effectively used, are copied - it is the first step of cleanness.
All the operations are processed on these duplicates, therefore, there is no risk to ruin the original code.
After that, the program searchs for unused declarations. Depending on the choice made in [Remove unused code] and [Do not remove. Mark as comments] options, the unused code will be removed from the file or marked as a comment line. The program converts Dim declarations, made in declarations zone, to Private. Also, Public declarations, used only in the module where they are declared, are converted to Private.
Format text code - with this option checked, the text code is formated.
Add error handlers - error handlers are added to every procedure (except if there is already a error handler). If a error ocurs, a message box displays the error number, error description, name of the procedure and name of the module.
Remove all comments - all comments are removed from the code.

Inputs
No inputs
Assumes
Just open the project and make a Exe file.
Code Returns
Returns a cleaned code of your project
Side Effects
No side effects
API Declarations
Just one API declaration (to run the Help file)

Rate VB Project Cleaner

Download VB Project Cleaner

Download VB Project Cleaner (21 KB)

VB Project Cleaner Comments

No comments have been posted about VB Project Cleaner. Why not be the first to post a comment about VB Project Cleaner.

Post your comment

Subject:
Message:
0/1000 characters