Solved

Cleaning Up a VB Program

Posted on 2000-02-28
7
154 Views
Last Modified: 2010-05-02
I have taken over a vb project that definitly needs sorting out. For example: the project itself contains loads a dbgrid.ocx, but I am almost certain that this file is no longer used. How do I check this and how do I safely perform some house cleaning. Thank you.
0
Comment
Question by:diek_nf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 1

Expert Comment

by:lly
ID: 2565022
You can check if you have remove all the dbgrid.ocx component by going into Project..|Components.. on the menu bar, and de-selecting that component that you do not need.

If you can't remove it, then it means that it is still being used somewhere in your application.


0
 
LVL 3

Expert Comment

by:Lewy
ID: 2565200
There are some utilities to help find dead code and unused variables. I’ve used Project Analyzer (http://www.aivosto.com/vb.html).
I’ve found that it helps to completely rebuild the project. Be sure to use Option Explicit and use cut and past to move the code. It won’t take as long as you think and it will help you get familiar with the code.
0
 
LVL 3

Expert Comment

by:MTroutwine
ID: 2565886
I have used the Project Analyzer mentioned by Lewy and it works very nicely for determining dead code, unused variables and other coding items.  Very nice indeed!
:>)
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:diek_nf
ID: 2565988
Unfortunately my project is too big for the demo version of Project Analyzer to work and I am independent and I cannot afford $90.00 at the present time. I guess I'll have to clean up the project the old fashioned way, with the Illy's suggestion and hard work. Thanks.
0
 
LVL 3

Expert Comment

by:Lewy
ID: 2566018
It may pay to buy it.

If number of hours to clean up * hourly pay - $90.00 is positive then BUY IT.

And you'll have the tool for other jobs.
0
 
LVL 3

Accepted Solution

by:
Lewy earned 100 total points
ID: 2566032
It may pay to buy it.

If number of hours to clean up * hourly pay - $90.00 is positive then BUY IT.

And you'll have the tool for other jobs.
0
 

Author Comment

by:diek_nf
ID: 2566398
Lewy and Everybody who Helped,
Common sense and logic, I love it. You and everyone else who suggested Project Analyzer are correct. Thank you.
Derrick
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question