winzip icon

VB Project Cleaner

Email
Submitted on: 1/27/2015 2:51:00 PM
By: Franco Gomes (from psc cd)  
Level: Advanced
User Rating: By 25 Users
Compatibility: VB 6.0
Views: 1070
 
     (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.

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :VB Project Cleaner
'**************************************
Just one API declaration (to run the Help file)
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.